Class internal implementation.
Functions | |
bool | udi_hid_multi_touch_send_report_in (uint8_t *data) |
Routine used to send a report to USB Host. More... | |
Variables | |
UDC_DESC_STORAGE udi_hid_multi_touch_report_desc_t | udi_hid_multi_touch_report_desc |
HID report descriptor for standard HID multi-touch. More... | |
Internal defines and variables to manage HID multi-touch | |
static COMPILER_WORD_ALIGNED uint8_t | udi_hid_multi_touch_rate |
To store current rate of HID multi-touch. More... | |
static COMPILER_WORD_ALIGNED uint8_t | udi_hid_multi_touch_protocol |
To store current protocol of HID multi-touch. More... | |
static bool | udi_hid_multi_touch_b_report_in_free |
To signal if the report IN buffer is free (no transfer on going) More... | |
static COMPILER_WORD_ALIGNED uint8_t | udi_hid_multi_touch_report_in [UDI_HID_REPORT_IN_SIZE] |
Report to send. More... | |
static COMPILER_WORD_ALIGNED uint8_t | udi_hid_multi_touch_report_feature [UDI_HID_REPORT_FEATURE_SIZE] |
Report to receive via SetFeature. More... | |
Internal routines | |
static bool | udi_hid_multi_touch_setupreport (void) |
Recieve or send a report to HID interface. More... | |
static void | udi_hid_multi_touch_report_in_sent (udd_ep_status_t status, iram_size_t nb_sent, udd_ep_id_t ep) |
Callback called when the report is sent. More... | |
|
static |
Callback called when the report is sent.
status | UDD_EP_TRANSFER_OK, if transfer is completed |
status | UDD_EP_TRANSFER_ABORT, if transfer is aborted |
nb_sent | number of data transfered |
References udi_hid_multi_touch_b_report_in_free, and UNUSED.
Referenced by udi_hid_multi_touch_send_report_in().
bool udi_hid_multi_touch_send_report_in | ( | uint8_t * | data | ) |
Routine used to send a report to USB Host.
data | Pointer on the report to send (size = UDI_HID_REPORT_IN_SIZE) |
1
if function was successfully done, otherwise 0
. References udd_ep_run(), udi_hid_multi_touch_b_report_in_free, UDI_HID_MULTI_TOUCH_EP_IN, udi_hid_multi_touch_report_in, and udi_hid_multi_touch_report_in_sent().
Referenced by ui_multitouch_down().
|
static |
Recieve or send a report to HID interface.
References udd_ctrl_request_t::payload, udd_ctrl_request_t::payload_size, udd_ctrl_request_t::req, udd_g_ctrlreq, udi_hid_multi_touch_report_feature, UDI_HID_REPORT_ID_MAX_COUNT, USB_HID_REPORT_TYPE_FEATURE, usb_setup_req_t::wLength, and usb_setup_req_t::wValue.
Referenced by udi_hid_multi_touch_setup().
|
static |
To signal if the report IN buffer is free (no transfer on going)
Referenced by udi_hid_multi_touch_enable(), udi_hid_multi_touch_report_in_sent(), and udi_hid_multi_touch_send_report_in().
|
static |
To store current protocol of HID multi-touch.
Referenced by udi_hid_multi_touch_enable(), and udi_hid_multi_touch_setup().
|
static |
To store current rate of HID multi-touch.
Referenced by udi_hid_multi_touch_enable(), and udi_hid_multi_touch_setup().
UDC_DESC_STORAGE udi_hid_multi_touch_report_desc_t udi_hid_multi_touch_report_desc |
HID report descriptor for standard HID multi-touch.
Referenced by udi_hid_multi_touch_setup().
|
static |
Report to receive via SetFeature.
Referenced by udi_hid_multi_touch_setupreport().
|
static |
Report to send.
Referenced by udi_hid_multi_touch_enable(), and udi_hid_multi_touch_send_report_in().