diff options
| author | hathach <[email protected]> | 2021-08-24 19:10:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-08-24 19:10:23 +0700 |
| commit | 3c0c051df182cb7261e0f5eb6c52e84f860d0ae1 (patch) | |
| tree | 46849b4a8829b1b005044b0c0c42a106e56a25ff /src/host/usbh.h | |
| parent | 88bb8fac3d555e390f59770200c73a13eb61504b (diff) | |
add tuh_vid_pid_get()
complete Sony PS4 dualshock controller example
Diffstat (limited to 'src/host/usbh.h')
| -rw-r--r-- | src/host/usbh.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h index 5f7229f27..8411cad28 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -57,7 +57,8 @@ void tuh_task(void); extern void hcd_int_handler(uint8_t rhport); #define tuh_int_handler hcd_int_handler -tusb_speed_t tuh_speed_get (uint8_t dev_addr); +bool tuh_vid_pid_get(uint8_t dev_addr, uint16_t* vid, uint16_t* pid); +tusb_speed_t tuh_speed_get(uint8_t dev_addr); // Check if device is connected and configured bool tuh_mounted(uint8_t dev_addr); @@ -66,6 +67,7 @@ bool tuh_mounted(uint8_t dev_addr); static inline bool tuh_suspended(uint8_t dev_addr) { // TODO implement suspend & resume on host + (void) dev_addr; return false; } |
