Changeset a22004f in mainline
- Timestamp:
- 2011-06-16T15:55:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 90474acb
- Parents:
- d022500
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.h
rd022500 ra22004f 49 49 typedef struct usb_hid_subdriver usb_hid_subdriver_t; 50 50 51 /** Subdriver initialization callback. 52 * 53 * @param dev Backing USB HID device. 54 * @param data Custom subdriver data (pointer where to store them). 55 * @return Error code. 56 */ 51 57 typedef int (*usb_hid_driver_init_t)(usb_hid_dev_t *dev, void **data); 58 59 /** Subdriver deinitialization callback. 60 * 61 * @param dev Backing USB HID device. 62 * @param data Custom subdriver data. 63 */ 52 64 typedef void (*usb_hid_driver_deinit_t)(usb_hid_dev_t *dev, void *data); 65 66 /** Subdriver callback on data from device. 67 * 68 * @param dev Backing USB HID device. 69 * @param data Custom subdriver data. 70 * @return Whether to continue polling (typically true always). 71 */ 53 72 typedef bool (*usb_hid_driver_poll_t)(usb_hid_dev_t *dev, void *data); 54 typedef int (*usb_hid_driver_poll_ended_t)(usb_hid_dev_t *dev, void *data, 55 bool reason); 73 74 /** Subdriver callback after communication with the device ceased. 75 * 76 * @param dev Backing USB HID device. 77 * @param data Custom subdriver data. 78 * @param ended_due_to_errors Whether communication ended due to errors in 79 * communication (true) or deliberately by driver (false). 80 */ 81 typedef void (*usb_hid_driver_poll_ended_t)(usb_hid_dev_t *dev, void *data, 82 bool ended_due_to_errors); 56 83 57 84 struct usb_hid_subdriver {
Note:
See TracChangeset
for help on using the changeset viewer.