search for: claim_device

Displaying 3 results from an estimated 3 matches for "claim_device".

2007 May 13
0
No subject
...STATUS_REQUESTTYPE, REQUEST_VALUE, MESSAGE_VALUE, INDEX_VALUE, query, sizeof(query), 1000); if (ret < 0) { return ret; } ret = usb_interrupt_read(upsdev, REPLY_REQUESTTYPE, reply, sizeof(REPLY_PACKETSIZE), 1000); return ret; } void claim_device () { int ret; ret = usb_claim_interface(upsdev, 0); if (ret < 0) { upslogx(LOG_ERR, "Can't claim USB interface"); } return ret; } void upsdrv_comm_good() { nutusb_comm_good(); } /* * Initialise the UPS */...
2007 May 13
0
No subject
...sdev, STATUS_REQUESTTYPE, REQUEST_VALUE, MESSAGE_VALUE, INDEX_VALUE, query, sizeof(query), 1000); if (ret < 0) { return ret; } ret = usb_interrupt_read(upsdev, REPLY_REQUESTTYPE, reply, sizeof(REPLY_PACKETSIZE), 1000); return ret; } void claim_device () { int ret; ret = usb_claim_interface(upsdev, 0); if (ret < 0) { upslogx(LOG_ERR, "Can't claim USB interface"); } return ret; } void upsdrv_comm_good() { nutusb_comm_good(); } /* * Initialise the UPS */ void...
2007 May 13
0
No subject
...sdev, STATUS_REQUESTTYPE, REQUEST_VALUE, MESSAGE_VALUE, INDEX_VALUE, query, sizeof(query), 1000); if (ret < 0) { return ret; } ret = usb_interrupt_read(upsdev, REPLY_REQUESTTYPE, reply, sizeof(REPLY_PACKETSIZE), 1000); return ret; } void claim_device () { int ret; ret = usb_claim_interface(upsdev, 0); if (ret < 0) { upslogx(LOG_ERR, "Can't claim USB interface"); } return ret; } void upsdrv_comm_good() { nutusb_comm_good(); } /* * Initialise the UPS */ void...