VSF Documented
|
#include "component/usb/vsf_usb_cfg.h"
#include "../../../common/class/HID/vsf_usb_HID.h"
#include "./vsf_usbd_HID_desc.h"
#include "utilities/ooc_class.h"
#include "./vsf_usbd_hidmsc.h"
Go to the source code of this file.
Data Structures | |
class | vk_usbd_hid_report_t |
class | vk_usbd_hid_t |
Macros | |
#define | USB_HID_PARAM(__IN_EP, __OUT_EP, __REPORT_NUM, __REPORTS, __HAS_REPORT_ID, __DESC_NUM, __DESC, __RX_BUFF, __RX_BUFF_SIZE, __NOTIFY_EDA, __NOTIFIER) |
#define | USB_HID_IFS_NUM 1 |
#define | USB_HID_IFS(__HID_PARAM) USB_IFS(&vk_usbd_hid, &(__HID_PARAM)) |
#define | __usbd_hid_desc(__name, __ifs, __i_func, __subclass, __protocol, __version_bcd, __country_code, __report_desc_len, __ep_in, __ep_in_size, __ep_in_interval, __ep_out, __ep_out_size, __ep_out_interval) |
#define | __usbd_hid_desc_iad(__name, __ifs, __i_func, __subclass, __protocol, __version_bcd, __country_code, __report_desc_len, __ep_in, __ep_in_size, __ep_in_interval, __ep_out, __ep_out_size, __ep_out_interval) |
#define | __usbd_hid_func(__name, __func_id, __in_ep, __out_ep, __out_ep_size, __report_num, __reports, __has_report_id, __report_desc, __report_desc_len, __notify_eda, __notifier) |
#define | __usbd_hid_ifs(__name, __func_id) USB_HID_IFS(__##__name##_HID##__func_id) |
#define | usbd_hid_desc(__name, __ifs, __i_func, __subclass, __protocol, __version_bcd, __country_code, __report_desc_len, __ep_in, __ep_in_size, __ep_in_interval, __ep_out, __ep_out_size, __ep_out_interval) |
#define | usbd_hid_desc_iad(__name, __ifs, __i_func, __subclass, __protocol, __version_bcd, __country_code, __report_desc_len, __ep_in, __ep_in_size, __ep_in_interval, __ep_out, __ep_out_size, __ep_out_interval) |
#define | usbd_hid_desc_table(__name, __func_id) usbd_func_str_desc_table(__name, __func_id) |
#define | usbd_hid_func(__name, __func_id, __in_ep, __out_ep, __out_ep_size, __report_num, __reports, __has_report_id, __report_desc, __report_desc_size, __notify_eda, __notifier) |
#define | usbd_hid_ifs(__name, __func_id) __usbd_hid_ifs(__name, __func_id) |
#define | VSF_USBD_DESC_HID_REPORT(__PTR, __SIZE) {USB_HID_DT_REPORT, 0, 0, (__SIZE), (uint8_t*)(__PTR)} |
#define | VSF_USBD_HID_REPORT(__TYPE, __ID, __BUFFER, __SIZE, __IDLE) {(__TYPE), {(__BUFFER), (__SIZE)}, (__ID), (__IDLE)} |
Functions | |
bool | vk_usbd_hid_in_report_can_update (vk_usbd_hid_report_t *report) |
void | vk_usbd_hid_in_report_changed (vk_usbd_hid_t *hid, vk_usbd_hid_report_t *report) |
void | vk_usbd_hid_out_report_processed (vk_usbd_hid_t *hid, vk_usbd_hid_report_t *report) |
Variables | |
const vk_usbd_class_op_t | vk_usbd_hid |
#define USB_HID_PARAM | ( | __IN_EP, | |
__OUT_EP, | |||
__REPORT_NUM, | |||
__REPORTS, | |||
__HAS_REPORT_ID, | |||
__DESC_NUM, | |||
__DESC, | |||
__RX_BUFF, | |||
__RX_BUFF_SIZE, | |||
__NOTIFY_EDA, | |||
__NOTIFIER | |||
) |
#define USB_HID_IFS_NUM 1 |
#define USB_HID_IFS | ( | __HID_PARAM | ) | USB_IFS(&vk_usbd_hid, &(__HID_PARAM)) |
#define __usbd_hid_desc | ( | __name, | |
__ifs, | |||
__i_func, | |||
__subclass, | |||
__protocol, | |||
__version_bcd, | |||
__country_code, | |||
__report_desc_len, | |||
__ep_in, | |||
__ep_in_size, | |||
__ep_in_interval, | |||
__ep_out, | |||
__ep_out_size, | |||
__ep_out_interval | |||
) |
#define __usbd_hid_desc_iad | ( | __name, | |
__ifs, | |||
__i_func, | |||
__subclass, | |||
__protocol, | |||
__version_bcd, | |||
__country_code, | |||
__report_desc_len, | |||
__ep_in, | |||
__ep_in_size, | |||
__ep_in_interval, | |||
__ep_out, | |||
__ep_out_size, | |||
__ep_out_interval | |||
) |
#define __usbd_hid_func | ( | __name, | |
__func_id, | |||
__in_ep, | |||
__out_ep, | |||
__out_ep_size, | |||
__report_num, | |||
__reports, | |||
__has_report_id, | |||
__report_desc, | |||
__report_desc_len, | |||
__notify_eda, | |||
__notifier | |||
) |
#define __usbd_hid_ifs | ( | __name, | |
__func_id | |||
) | USB_HID_IFS(__##__name##_HID##__func_id) |
#define usbd_hid_desc | ( | __name, | |
__ifs, | |||
__i_func, | |||
__subclass, | |||
__protocol, | |||
__version_bcd, | |||
__country_code, | |||
__report_desc_len, | |||
__ep_in, | |||
__ep_in_size, | |||
__ep_in_interval, | |||
__ep_out, | |||
__ep_out_size, | |||
__ep_out_interval | |||
) |
#define usbd_hid_desc_iad | ( | __name, | |
__ifs, | |||
__i_func, | |||
__subclass, | |||
__protocol, | |||
__version_bcd, | |||
__country_code, | |||
__report_desc_len, | |||
__ep_in, | |||
__ep_in_size, | |||
__ep_in_interval, | |||
__ep_out, | |||
__ep_out_size, | |||
__ep_out_interval | |||
) |
#define usbd_hid_desc_table | ( | __name, | |
__func_id | |||
) | usbd_func_str_desc_table(__name, __func_id) |
#define usbd_hid_func | ( | __name, | |
__func_id, | |||
__in_ep, | |||
__out_ep, | |||
__out_ep_size, | |||
__report_num, | |||
__reports, | |||
__has_report_id, | |||
__report_desc, | |||
__report_desc_size, | |||
__notify_eda, | |||
__notifier | |||
) |
#define usbd_hid_ifs | ( | __name, | |
__func_id | |||
) | __usbd_hid_ifs(__name, __func_id) |
#define VSF_USBD_DESC_HID_REPORT | ( | __PTR, | |
__SIZE | |||
) | {USB_HID_DT_REPORT, 0, 0, (__SIZE), (uint8_t*)(__PTR)} |
#define VSF_USBD_HID_REPORT | ( | __TYPE, | |
__ID, | |||
__BUFFER, | |||
__SIZE, | |||
__IDLE | |||
) | {(__TYPE), {(__BUFFER), (__SIZE)}, (__ID), (__IDLE)} |
|
extern |
|
extern |
|
extern |
|
extern |