Logo Search packages:      
Sourcecode: nut version File versions  Download package

int shut_get_descriptor ( int  upsfd,
unsigned char  type,
unsigned char  index,
void *  buf,
int  size 

SHUT functions for HID marshalling

Definition at line 822 of file libshut.c.

      memset(buf, 0, size);

      upsdebugx (2, "entering shut_get_descriptor(n %02x, %i)", type, size);

      return shut_control_msg(upsfd, USB_ENDPOINT_IN+(type>=USB_DT_HID?1:0),
                         USB_REQ_GET_DESCRIPTOR, (type << 8) + index, 0, buf, size, SHUT_TIMEOUT);

Generated by  Doxygen 1.6.0   Back to index