diff options
| author | hathach <[email protected]> | 2021-08-20 19:31:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-08-20 19:31:38 +0700 |
| commit | 22a5b1608c0949d46f8e346878bff730712858e4 (patch) | |
| tree | 82b4cbd1b60415f1fdf2405ed72726fb949eae57 /src/host/usbh_classdriver.h | |
| parent | 97703587d9f306f01a9435c1515a585f1b8d0975 (diff) | |
change host driver open return type to bool
the descriptor len used by driver will be calculated by usbh
Diffstat (limited to 'src/host/usbh_classdriver.h')
| -rw-r--r-- | src/host/usbh_classdriver.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/host/usbh_classdriver.h b/src/host/usbh_classdriver.h index fccb30253..8bc2622aa 100644 --- a/src/host/usbh_classdriver.h +++ b/src/host/usbh_classdriver.h @@ -43,11 +43,11 @@ typedef struct { char const* name; #endif - void (* const init )(void); - uint16_t (* const open )(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const * itf_desc, uint16_t max_len); - bool (* const set_config )(uint8_t dev_addr, uint8_t itf_num); - bool (* const xfer_cb )(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t result, uint32_t xferred_bytes); - void (* const close )(uint8_t dev_addr); + void (* const init )(void); + bool (* const open )(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const * itf_desc, uint16_t max_len); + bool (* const set_config )(uint8_t dev_addr, uint8_t itf_num); + bool (* const xfer_cb )(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t result, uint32_t xferred_bytes); + void (* const close )(uint8_t dev_addr); } usbh_class_driver_t; // Call by class driver to tell USBH that it has complete the enumeration |
