diff options
| author | hathach <[email protected]> | 2022-03-13 17:45:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-13 17:45:46 +0700 |
| commit | 2929afe2fa2fc8425dcd1390cb3119bb1bd3b42b (patch) | |
| tree | d465c9804b7d1706ea5a5b79cb4a15adc5d24b70 /src/common | |
| parent | 56695569e7d9ebf39ffb2152aba4b4b9f0801d2d (diff) | |
add synchronous (blocking) support for usbh control transfer
- add synchronous version of all get descriptor API
- update bare example to use sync API for string descriptor
- change order of index, language_id in tuh_descriptor_get_string() to
match similar API of libusb
- add index to tuh_descriptor_get_hid_report()
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index da164145b..e2fa17532 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -228,6 +228,8 @@ typedef enum XFER_RESULT_SUCCESS, XFER_RESULT_FAILED, XFER_RESULT_STALLED, + XFER_RESULT_TIMEOUT, + XFER_RESULT_INVALID }xfer_result_t; enum // TODO remove |
