diff options
| author | hathach <[email protected]> | 2020-09-03 17:07:29 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-09-03 17:07:29 +0700 |
| commit | ef651e073409bac1a9793d97bf5a25220913f32e (patch) | |
| tree | 4892167706dbffc788f683b1a00a55357bbdc553 /src/class/hid/hid_host.h | |
| parent | 1d83ad0ebb6c263736b0dadec80c9406563a5199 (diff) | |
fix #449 remove obsolete pipehandle from hid host
Diffstat (limited to 'src/class/hid/hid_host.h')
| -rw-r--r-- | src/class/hid/hid_host.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/class/hid/hid_host.h b/src/class/hid/hid_host.h index a3b614cd7..2e7f52674 100644 --- a/src/class/hid/hid_host.h +++ b/src/class/hid/hid_host.h @@ -195,15 +195,9 @@ void tuh_hid_generic_isr(uint8_t dev_addr, xfer_result_t event); //--------------------------------------------------------------------+ // Internal Class Driver API //--------------------------------------------------------------------+ -typedef struct { - pipe_handle_t pipe_hdl; - uint16_t report_size; - uint8_t interface_number; -}hidh_interface_info_t; - void hidh_init(void); -bool hidh_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_interface_desc, uint16_t *p_length); -void hidh_isr(pipe_handle_t pipe_hdl, xfer_result_t event, uint32_t xferred_bytes); +bool hidh_open_subtask(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *p_interface_desc, uint16_t *p_length); +void hidh_isr(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes); void hidh_close(uint8_t dev_addr); #ifdef __cplusplus |
