diff options
| author | hathach <[email protected]> | 2013-12-09 11:15:13 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-12-09 11:15:13 +0700 |
| commit | e320659f8a4869a81e656285ed1263d8515aa7ee (patch) | |
| tree | bf355e111ebfc710bf3c30a31919e6f98542bf2b /tinyusb/class/hid_device.h | |
| parent | 1ad78f104ed87957bd4cf7e15029ab3e4e3cb377 (diff) | |
add keyboard led mask
make usbd control request to subtask
add get/set report via control pipe to hidd
enforce soft DMA to control pipe for lpc11u (lpc17xx not yet)
temp add led_blinking_set_interval to change led blinking interval
refractor dcd_pipe_control_xfer to have interrupt on complete option
add get/set report support of moused_app and keyboardd_app, keyboard LED will make LED blink faster
Diffstat (limited to 'tinyusb/class/hid_device.h')
| -rw-r--r-- | tinyusb/class/hid_device.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/class/hid_device.h b/tinyusb/class/hid_device.h index b51b0d8eb..e91000f68 100644 --- a/tinyusb/class/hid_device.h +++ b/tinyusb/class/hid_device.h @@ -94,8 +94,8 @@ void tusbd_hid_keyboard_unmounted_cb(uint8_t coreid); */ void tusbd_hid_keyboard_cb(uint8_t coreid, tusb_event_t event, uint32_t xferred_bytes); -void tusbd_hid_keyboard_set_report_cb(uint8_t coreid, hid_request_report_type_t report_type, uint8_t report_data[]); -void tusbd_hid_keyboard_get_report_cb(uint8_t coreid, hid_request_report_type_t report_type, void** pp_report); +void tusbd_hid_keyboard_set_report_cb(uint8_t coreid, hid_request_report_type_t report_type, uint8_t p_report_data[], uint16_t length); +uint16_t tusbd_hid_keyboard_get_report_cb(uint8_t coreid, hid_request_report_type_t report_type, void** pp_report, uint16_t requested_length); /** @} */ /** @} */ @@ -108,8 +108,6 @@ void tusbd_hid_keyboard_get_report_cb(uint8_t coreid, hid_request_report_type_t /** \defgroup Mouse_Device Device * @{ */ -//bool tusbd_hid_mouse_is_configured(uint8_t coreid); - /** \brief Check if the interface is currently busy or not * \param[in] coreid USB Controller ID * \retval true if the interface is busy meaning the stack is still transferring/waiting data from/to host @@ -149,6 +147,8 @@ void tusbd_hid_mouse_unmounted_cb(uint8_t coreid); */ void tusbd_hid_mouse_cb(uint8_t coreid, tusb_event_t event, uint32_t xferred_bytes); +uint16_t tusbd_hid_mouse_get_report_cb(uint8_t coreid, hid_request_report_type_t report_type, void** pp_report, uint16_t requested_length); +void tusbd_hid_mouse_set_report_cb(uint8_t coreid, hid_request_report_type_t report_type, uint8_t p_report_data[], uint16_t length); /** @} */ /** @} */ @@ -161,7 +161,7 @@ void tusbd_hid_mouse_cb(uint8_t coreid, tusb_event_t event, uint32_t xferred_byt void hidd_init(void); tusb_error_t hidd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_interface_desc, uint16_t *p_length); -tusb_error_t hidd_control_request(uint8_t coreid, tusb_control_request_t const * p_request); +tusb_error_t hidd_control_request_subtask(uint8_t coreid, tusb_control_request_t const * p_request); tusb_error_t hidd_xfer_cb(endpoint_handle_t edpt_hdl, tusb_event_t event, uint32_t xferred_bytes); void hidd_close(uint8_t coreid); |
