![]() |
M480 BSP V3.05.006
The Board Support Package for M480 Series
|
Functions | |
void | usbh_hid_regitser_mouse_callback (HID_MOUSE_FUNC *func) |
Register the mouse event callback function to HID class driver. Any mouse reports will be sent to user application via this callback. More... | |
void | usbh_hid_regitser_keyboard_callback (HID_KEYBOARD_FUNC *func) |
Register the keyboard event callback function to HID class driver. Any keyboard reports will be sent to user application via this callback. More... | |
void | usbh_core_init (void) |
Initialize M480 USB Host controller and USB stack. More... | |
void | usbh_core_init_ex (int ovc_alv) |
Initialize M480 USB Host controller and USB stack. More... | |
int | usbh_pooling_hubs (void) |
Let USB stack polls all root hubs and downstream hubs. If there's any hub port change found, USB stack will manage the hub events in this function call. In this function, USB stack enumerates newly connected devices and remove staff of disconnected devices. User's application should periodically invoke this function. More... | |
void | usbh_install_conn_callback (CONN_FUNC *conn_func, CONN_FUNC *disconn_func) |
Install device connect and disconnect callback function. More... | |
void | usbh_suspend (void) |
Suspend USB Host Controller and devices. More... | |
void | usbh_resume (void) |
Resume USB Host controller and devices. More... | |
struct udev_t * | usbh_find_device (char *hub_id, int port) |
Find the device under the specified hub port. More... | |
uint32_t | get_ticks (void) |
A function return current tick count. More... | |
void | usbh_cdc_init (void) |
Init USB Host CDC driver. More... | |
struct cdc_dev_t * | usbh_cdc_get_device_list (void) |
Get a list of currently connected USB Hid devices. More... | |
HIDDEN_SYMBOLS int32_t | usbh_cdc_set_control_line_state (CDC_DEV_T *cdev, int active_carrier, int DTE_present) |
SET_CONTROL_LINE_STATE request. More... | |
int32_t | usbh_cdc_start_polling_status (CDC_DEV_T *cdev, CDC_CB_FUNC *func) |
Start purge the CDC device's interrupt-in transfer pipe. More... | |
int32_t | usbh_cdc_start_to_receive_data (CDC_DEV_T *cdev, CDC_CB_FUNC *func) |
Make CDC device start to receive data from bulk-in transfer pipe. More... | |
int32_t | usbh_cdc_send_data (CDC_DEV_T *cdev, uint8_t *buff, int buff_len) |
Send a block of data via CDC device's bulk-out transfer pipe. More... | |
void | usbh_hid_init (void) |
Initialize USB Host HID driver. More... | |
struct usbhid_dev * | usbh_hid_get_device_list (void) |
Get a list of currently connected USB Hid devices. More... | |
int32_t | usbh_hid_get_report_descriptor (struct usbhid_dev *hdev, uint8_t *desc_buf, int buf_max_len) |
int32_t | usbh_hid_get_report (struct usbhid_dev *hdev, int rtp_typ, int rtp_id, uint8_t *data, int len) |
int32_t | usbh_hid_set_report (struct usbhid_dev *hdev, int rtp_typ, int rtp_id, uint8_t *data, int len) |
int32_t | usbh_hid_get_idle (struct usbhid_dev *hdev, int rtp_id, uint8_t *idle_rate) |
int32_t | usbh_hid_set_idle (struct usbhid_dev *hdev, int rtp_id, uint8_t idle_rate) |
int32_t | usbh_hid_get_protocol (struct usbhid_dev *hdev, uint8_t *protocol) |
int32_t | usbh_hid_set_protocol (struct usbhid_dev *hdev, uint8_t protocol) |
int32_t | usbh_hid_start_int_read (struct usbhid_dev *hdev, uint8_t ep_addr, HID_IR_FUNC *func) |
int32_t | usbh_hid_stop_int_read (struct usbhid_dev *hdev, uint8_t ep_addr) |
int32_t | usbh_hid_start_int_write (struct usbhid_dev *hdev, uint8_t ep_addr, HID_IW_FUNC *func) |
int32_t | usbh_hid_stop_int_write (struct usbhid_dev *hdev, uint8_t ep_addr) |
int | usbh_umas_init (void) |
Register and initialize USB Host Mass Storage driver. More... | |
int | usbh_umas_disk_status (int drv_no) |
int | usbh_umas_read (int drv_no, uint32_t sec_no, int sec_cnt, uint8_t *buff) |
int | usbh_umas_write (int drv_no, uint32_t sec_no, int sec_cnt, uint8_t *buff) |
int | usbh_umas_ioctl (int drv_no, int cmd, void *buff) |
HIDDEN_SYMBOLS void | usbh_uac_init (void) |
Initialize USB Audio Class driver. More... | |
int | usbh_uac_open (UAC_DEV_T *uac) |
Open an connected UAC device. More... | |
struct uac_dev_t * | usbh_uac_get_device_list (void) |
Get a list of currently connected USB Audio Class devices. More... | |
int | usbh_uac_get_channel_number (UAC_DEV_T *uac, uint8_t target) |
Obtain Audio Class device's channel number. More... | |
int | usbh_uac_get_bit_resolution (UAC_DEV_T *uac, uint8_t target, uint8_t *byte_cnt) |
Obtain Audio Class device subframe bit resolution.. More... | |
int | usbh_uac_get_sampling_rate (UAC_DEV_T *uac, uint8_t target, uint32_t *srate_list, int max_cnt, uint8_t *type) |
Get a list of sampling rate frequencies supported by the UAC device. More... | |
int | usbh_uac_sampling_rate_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint32_t *srate) |
Set sampling rate frequency. More... | |
int | usbh_uac_mute_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint16_t chn, uint8_t *mute) |
Control Audio Class device mute on/off. More... | |
int | usbh_uac_vol_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint16_t chn, uint16_t *volume) |
Audio Class device volume control. More... | |
int | usbh_uac_auto_gain_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint16_t chn, uint8_t *bAGC) |
Audio Class device automatic gain control. More... | |
int | usbh_uac_start_audio_in (UAC_DEV_T *uac, UAC_CB_FUNC *func) |
Start to receive audio data from UAC device. (Microphone) More... | |
int | usbh_uac_stop_audio_in (UAC_DEV_T *uac) |
Stop UAC device audio in data stream. More... | |
int | usbh_uac_start_audio_out (UAC_DEV_T *uac, UAC_CB_FUNC *func) |
Start to transmit audio data to UAC device. (Speaker) More... | |
int | usbh_uac_stop_audio_out (UAC_DEV_T *uac) |
Stop UAC device audio out data stream. More... | |
int32_t | usbh_cdc_get_line_coding (CDC_DEV_T *cdev, LINE_CODING_T *line_code) |
GET_LINE_CODING request. More... | |
int32_t | usbh_cdc_set_line_coding (CDC_DEV_T *cdev, LINE_CODING_T *line_code) |
SET_LINE_CODING request. More... | |
uint32_t get_ticks | ( | void | ) |
A function return current tick count.
User application must provide this function to return current tick. The tick should increase by 1 for every 10 ms.
struct cdc_dev_t * usbh_cdc_get_device_list | ( | void | ) |
Get a list of currently connected USB Hid devices.
NULL | There's no CDC device found. |
Otherwise | A list of connected CDC devices. |
The CDC devices are chained by the "next" member of CDC_DEV_T.
Definition at line 280 of file cdc_driver.c.
int32_t usbh_cdc_get_line_coding | ( | CDC_DEV_T * | cdev, |
LINE_CODING_T * | line_code | ||
) |
GET_LINE_CODING request.
[in] | cdev | CDC device |
[out] | line_code | The currently configured line coding. |
0 | Success |
Otherwise | Failed |
Definition at line 46 of file cdc_core.c.
void usbh_cdc_init | ( | void | ) |
int32_t usbh_cdc_send_data | ( | CDC_DEV_T * | cdev, |
uint8_t * | buff, | ||
int | buff_len | ||
) |
Send a block of data via CDC device's bulk-out transfer pipe.
[in] | cdev | CDC device |
[in] | buff | Buffer contains the data block to be send. |
[in] | buff_len | Length in byte of data to be send |
0 | Success |
Otherwise | Failed |
Definition at line 383 of file cdc_core.c.
int32_t usbh_cdc_set_control_line_state | ( | CDC_DEV_T * | cdev, |
int | active_carrier, | ||
int | DTE_present | ||
) |
SET_CONTROL_LINE_STATE request.
[in] | cdev | CDC device |
[in] | active_carrier | Carrier control for half duplex modems is activated or not. |
[in] | DTE_present | Indicates to DCE if DTE is present or not. |
0 | Success |
Otherwise | Failed |
Definition at line 135 of file cdc_core.c.
int32_t usbh_cdc_set_line_coding | ( | CDC_DEV_T * | cdev, |
LINE_CODING_T * | line_code | ||
) |
SET_LINE_CODING request.
[in] | cdev | CDC device |
[in] | line_code | The line coding configuration to be set. |
0 | Success |
Otherwise | Failed |
Definition at line 85 of file cdc_core.c.
HIDDEN_SYMBOLS int32_t usbh_cdc_start_polling_status | ( | CDC_DEV_T * | cdev, |
CDC_CB_FUNC * | func | ||
) |
Start purge the CDC device's interrupt-in transfer pipe.
[in] | cdev | CDC device |
[in] | func | The interrupt in data receiver callback function. |
0 | Success |
Otherwise | Failed |
Definition at line 213 of file cdc_core.c.
HIDDEN_SYMBOLS int32_t usbh_cdc_start_to_receive_data | ( | CDC_DEV_T * | cdev, |
CDC_CB_FUNC * | func | ||
) |
Make CDC device start to receive data from bulk-in transfer pipe.
[in] | cdev | CDC device |
[in] | func | The BULK in data receiver callback function. |
0 | Success |
Otherwise | Failed |
Definition at line 306 of file cdc_core.c.
void usbh_core_init | ( | void | ) |
Initialize M480 USB Host controller and USB stack.
Definition at line 41 of file usb_core.c.
void usbh_core_init_ex | ( | int | ovc_alv | ) |
Initialize M480 USB Host controller and USB stack.
[in] | ovc_alv | Over-current active level setting 0: active low 1: active high |
Definition at line 91 of file usb_core.c.
struct udev_t * usbh_find_device | ( | char * | hub_id, |
int | port | ||
) |
Find the device under the specified hub port.
[in] | hub_id | Hub identify ID |
[in] | port | Port number of the specified ub. |
NULL | Not found. There's no valid device connected under that hub port. |
Otherwise | An UDEV_T pointer reference to the device under specified hub and port. |
struct usbhid_dev * usbh_hid_get_device_list | ( | void | ) |
Get a list of currently connected USB Hid devices.
NULL | There's no HID device found. |
Otherwise | A list of connected HID devices. |
The HID devices are chained by the "next" member of HID_DEV_T.
Definition at line 225 of file hid_driver.c.
int32_t usbh_hid_get_idle | ( | struct usbhid_dev * | hdev, |
int | rtp_id, | ||
uint8_t * | idle_rate | ||
) |
int32_t usbh_hid_get_protocol | ( | struct usbhid_dev * | hdev, |
uint8_t * | protocol | ||
) |
int32_t usbh_hid_get_report | ( | struct usbhid_dev * | hdev, |
int | rtp_typ, | ||
int | rtp_id, | ||
uint8_t * | data, | ||
int | len | ||
) |
int32_t usbh_hid_get_report_descriptor | ( | struct usbhid_dev * | hdev, |
uint8_t * | desc_buf, | ||
int | buf_max_len | ||
) |
void usbh_hid_init | ( | void | ) |
void usbh_hid_regitser_keyboard_callback | ( | HID_KEYBOARD_FUNC * | func | ) |
Register the keyboard event callback function to HID class driver. Any keyboard reports will be sent to user application via this callback.
[in] | func | Keyboard event callback function |
Definition at line 755 of file hid_core.c.
void usbh_hid_regitser_mouse_callback | ( | HID_MOUSE_FUNC * | func | ) |
Register the mouse event callback function to HID class driver. Any mouse reports will be sent to user application via this callback.
[in] | func | Mouse event callback function |
Definition at line 743 of file hid_core.c.
int32_t usbh_hid_set_idle | ( | struct usbhid_dev * | hdev, |
int | rtp_id, | ||
uint8_t | idle_rate | ||
) |
int32_t usbh_hid_set_protocol | ( | struct usbhid_dev * | hdev, |
uint8_t | protocol | ||
) |
int32_t usbh_hid_set_report | ( | struct usbhid_dev * | hdev, |
int | rtp_typ, | ||
int | rtp_id, | ||
uint8_t * | data, | ||
int | len | ||
) |
int32_t usbh_hid_start_int_read | ( | struct usbhid_dev * | hdev, |
uint8_t | ep_addr, | ||
HID_IR_FUNC * | func | ||
) |
int32_t usbh_hid_start_int_write | ( | struct usbhid_dev * | hdev, |
uint8_t | ep_addr, | ||
HID_IW_FUNC * | func | ||
) |
int32_t usbh_hid_stop_int_read | ( | struct usbhid_dev * | hdev, |
uint8_t | ep_addr | ||
) |
int32_t usbh_hid_stop_int_write | ( | struct usbhid_dev * | hdev, |
uint8_t | ep_addr | ||
) |
Install device connect and disconnect callback function.
[in] | conn_func | Device connect callback function. |
[in] | disconn_func | Device disconnect callback function. |
Definition at line 104 of file usb_core.c.
int usbh_pooling_hubs | ( | void | ) |
Let USB stack polls all root hubs and downstream hubs. If there's any hub port change found, USB stack will manage the hub events in this function call. In this function, USB stack enumerates newly connected devices and remove staff of disconnected devices. User's application should periodically invoke this function.
0 | No any hub port status changes found. |
1 | There's hub port status changes. |
void usbh_resume | ( | void | ) |
void usbh_suspend | ( | void | ) |
int usbh_uac_auto_gain_control | ( | UAC_DEV_T * | uac, |
uint8_t | target, | ||
uint8_t | req, | ||
uint16_t | chn, | ||
uint8_t * | bAGC | ||
) |
Audio Class device automatic gain control.
[in] | uac | UAC device |
[in] | target | Select the control target. |
[in] | req | Control request. This UAC driver supports the following request: |
[in] | chn | The requested channel. It can be one of the followings: |
[in] | bAGC | One byte data. If the channel's automatic gain control is on, then the value is 1. Otherwise, it's 0. |
0 | Success |
UAC_RET_DEV_NOT_SUPPORTED | This UAC device does not support this function. |
Otherwise | Error occurred |
Definition at line 385 of file uac_core.c.
int usbh_uac_get_bit_resolution | ( | UAC_DEV_T * | uac, |
uint8_t | target, | ||
uint8_t * | byte_cnt | ||
) |
Obtain Audio Class device subframe bit resolution..
[in] | uac | UAC device |
[in] | target | Select the control target. |
[out] | byte_cnt | The number of bytes occupied by one audio subframe. Can be 1, 2, 3 or 4. |
< | 0 Failed. UAC device may not present or function not supported. |
Otherwise | The number of effectively used bits from the available bits in an audio subframe. |
Definition at line 71 of file uac_core.c.
int usbh_uac_get_channel_number | ( | UAC_DEV_T * | uac, |
uint8_t | target | ||
) |
Obtain Audio Class device's channel number.
[in] | uac | UAC device |
[in] | target | Select the control target. |
< | 0 Failed. UAC device may not present or function not supported. |
Otherwise | The channel number. |
Definition at line 44 of file uac_core.c.
UAC_DEV_T * usbh_uac_get_device_list | ( | void | ) |
Get a list of currently connected USB Audio Class devices.
NULL | There's no UAC devices found. |
Otherwise | A list of connected UAC devices. |
The Audio Class devices are chained by the "next" member of UAC_DEV_T.
Definition at line 266 of file uac_driver.c.
HIDDEN_SYMBOLS int usbh_uac_get_sampling_rate | ( | UAC_DEV_T * | uac, |
uint8_t | target, | ||
uint32_t * | srate_list, | ||
int | max_cnt, | ||
uint8_t * | type | ||
) |
Get a list of sampling rate frequencies supported by the UAC device.
[in] | uac | UAC device |
[in] | target | Select the control target. |
[out] | srate_list | A word array provided by user application to hold the sampling rate list. |
[in] | max_cnt | Available number of entries of srate_list[]. Must be > 2. |
[out] | type | Indicates how the sampling frequency can be programmed. 0: Continuous sampling frequency. srate_list[0] is the lower bound in Hz of the sampling frequency and srate_list[1] is the upper bound. 1~255: The number of discrete sampling frequencies supported. They are listed in srate_list[]. |
0 | Success |
Otherwise | Failed |
Definition at line 116 of file uac_core.c.
HIDDEN_SYMBOLS void usbh_uac_init | ( | void | ) |
int usbh_uac_mute_control | ( | UAC_DEV_T * | uac, |
uint8_t | target, | ||
uint8_t | req, | ||
uint16_t | chn, | ||
uint8_t * | mute | ||
) |
Control Audio Class device mute on/off.
[in] | uac | UAC device |
[in] | target | Select the control target. |
[in] | req | Control request. This UAC driver supports the following request: |
[in] | chn | The requested channel. It can be one of the followings: |
[in] | mute | One byte data. If the channel is muted, then the value is 1. Otherwise, it's 0. |
0 | Success |
UAC_RET_DEV_NOT_SUPPORTED | This UAC device does not support this function. |
Otherwise | Error occurred |
Definition at line 240 of file uac_core.c.
int usbh_uac_open | ( | UAC_DEV_T * | uac | ) |
Open an connected UAC device.
[in] | uac | Audio Class device |
0 | Success |
Otherwise | Failed |
Definition at line 997 of file uac_core.c.
int usbh_uac_sampling_rate_control | ( | UAC_DEV_T * | uac, |
uint8_t | target, | ||
uint8_t | req, | ||
uint32_t * | srate | ||
) |
Set sampling rate frequency.
[in] | uac | UAC device |
[in] | target | Select the control target. |
[in] | req | Control request. This UAC driver supports the following request: |
[in] | srate | Sampling rate frequency to be set or get. |
0 | Success |
Otherwise | Error occurred |
Definition at line 169 of file uac_core.c.
HIDDEN_SYMBOLS int usbh_uac_start_audio_in | ( | UAC_DEV_T * | uac, |
UAC_CB_FUNC * | func | ||
) |
Start to receive audio data from UAC device. (Microphone)
[in] | uac | Audio Class device |
[in] | func | Audio in callback function. |
0 | Success |
Otherwise | Failed |
Definition at line 554 of file uac_core.c.
HIDDEN_SYMBOLS int usbh_uac_start_audio_out | ( | UAC_DEV_T * | uac, |
UAC_CB_FUNC * | func | ||
) |
Start to transmit audio data to UAC device. (Speaker)
[in] | uac | Audio Class device |
[in] | func | Audio out call-back function. UAC driver call this function to get audio out stream data from user application. |
0 | Success |
Otherwise | Failed |
Definition at line 796 of file uac_core.c.
int usbh_uac_stop_audio_in | ( | UAC_DEV_T * | uac | ) |
Stop UAC device audio in data stream.
[in] | uac | Audio Class device |
0 | Success |
Otherwise | Failed |
Definition at line 703 of file uac_core.c.
int usbh_uac_stop_audio_out | ( | UAC_DEV_T * | uac | ) |
Stop UAC device audio out data stream.
[in] | uac | Audio Class device |
0 | Success |
Otherwise | Failed |
Definition at line 946 of file uac_core.c.
int usbh_uac_vol_control | ( | UAC_DEV_T * | uac, |
uint8_t | target, | ||
uint8_t | req, | ||
uint16_t | chn, | ||
uint16_t * | volume | ||
) |
Audio Class device volume control.
[in] | uac | UAC device |
[in] | target | Select the control target. |
[in] | req | Control request. This UAC driver supports the following request: |
[in] | chn | The requested channel. It can be one of the followings: |
[in] | volume | Audio Class device volume value, which is interpreted as the following: 0x7FFF: 127.9961 dB . . . 0x0100: 1.0000 dB . . . 0x0002: 0.0078 dB 0x0001: 0.0039 dB 0x0000: 0.0000 dB 0xFFFF: -0.0039 dB 0xFFFE: -0.0078 dB . . . 0xFE00: -1.0000 dB . . . 0x8002: -127.9922 dB 0x8001: -127.9961 dB |
0 | Success |
UAC_RET_DEV_NOT_SUPPORTED | This UAC device does not support this function. |
Otherwise | Error occurred |
Definition at line 323 of file uac_core.c.
int usbh_umas_disk_status | ( | int | drv_no | ) |
int usbh_umas_init | ( | void | ) |
Register and initialize USB Host Mass Storage driver.
0 | Success. |
1 | Failed. |
Definition at line 631 of file msc_driver.c.
int usbh_umas_ioctl | ( | int | drv_no, |
int | cmd, | ||
void * | buff | ||
) |
int usbh_umas_read | ( | int | drv_no, |
uint32_t | sec_no, | ||
int | sec_cnt, | ||
uint8_t * | buff | ||
) |
int usbh_umas_write | ( | int | drv_no, |
uint32_t | sec_no, | ||
int | sec_cnt, | ||
uint8_t * | buff | ||
) |
signed int usbhid_mouse_event::axis_max |
Logical maxmum of mouse X,Y axis value
Definition at line 305 of file usbh_hid.h.
signed int usbhid_mouse_event::axis_min |
Logical minimum of mouse X,Y axis value
Definition at line 304 of file usbh_hid.h.
uint8_t usbhid_mouse_event::axis_relative |
X,Y axis vlaue is relative(1) or absolute(0)
Definition at line 300 of file usbh_hid.h.
uint8_t usbhid_dev::bProtocolCode |
Interface protocol code
Definition at line 269 of file usbh_hid.h.
uint8_t usbhid_dev::bSubClassCode |
Interface subclass code
Definition at line 268 of file usbh_hid.h.
uint8_t usbhid_mouse_event::button_cnt |
Number of buttons
Definition at line 302 of file usbh_hid.h.
uint32_t usbhid_mouse_event::button_map |
bit0 for button 0, bit1 for button 1, ...
Definition at line 303 of file usbh_hid.h.
uint16_t usbhid_dev::idProduct |
USB device product ID. (from device descriptor)
Definition at line 267 of file usbh_hid.h.
uint16_t usbhid_dev::idVendor |
USB device vendor ID. (from device descriptor)
Definition at line 266 of file usbh_hid.h.
void* usbhid_dev::iface |
This HID interface
Definition at line 274 of file usbh_hid.h.
uint8_t usbhid_keyboard_event::key_cnt |
The number of key code available in keycode[]
Definition at line 290 of file usbh_hid.h.
uint8_t usbhid_keyboard_event::keycode[6] |
The key code received from keyboard.
Definition at line 289 of file usbh_hid.h.
uint8_t usbhid_keyboard_event::lock_state |
bit0: Num Lock; bit1: Caps Lock, bit2: Scroll Lock. 1 is in lock state.
Definition at line 287 of file usbh_hid.h.
uint8_t usbhid_keyboard_event::modifier |
Definition at line 288 of file usbh_hid.h.
struct usbhid_dev* usbhid_dev::next |
Point to the next HID device
Definition at line 277 of file usbh_hid.h.
UTR_T* usbhid_dev::out_utr_list |
UTR list of INT out endpoints
Definition at line 273 of file usbh_hid.h.
HID_IR_FUNC* usbhid_dev::read_func |
Interrupt-in callback function
Definition at line 270 of file usbh_hid.h.
RPD_T usbhid_dev::rpd |
Information of Report Descriptor
Definition at line 276 of file usbh_hid.h.
uint32_t usbhid_dev::uid |
The unique ID to identify a HID device.
Definition at line 275 of file usbh_hid.h.
UTR_T* usbhid_dev::utr_list[CONFIG_HID_DEV_MAX_PIPE] |
UTR list of all INT in and out pipes in running
Definition at line 272 of file usbh_hid.h.
signed int usbhid_mouse_event::wheel |
mouse wheel value
Definition at line 310 of file usbh_hid.h.
int usbhid_mouse_event::wheel_bits |
wheel bit resolution
Definition at line 313 of file usbh_hid.h.
signed int usbhid_mouse_event::wheel_max |
Logical maxmum of mouse wheel value
Definition at line 309 of file usbh_hid.h.
signed int usbhid_mouse_event::wheel_min |
Logical minimum of mouse wheel value
Definition at line 308 of file usbh_hid.h.
uint32_t usbhid_mouse_event::wheel_raw |
mouse report wheel raw data
Definition at line 316 of file usbh_hid.h.
uint8_t usbhid_mouse_event::wheel_relative |
Wheel vlaue is relative(1) or absolute(0)
Definition at line 301 of file usbh_hid.h.
HID_IW_FUNC* usbhid_dev::write_func |
Interrupt-out callback function
Definition at line 271 of file usbh_hid.h.
signed int usbhid_mouse_event::X |
mouse X axis value
Definition at line 306 of file usbh_hid.h.
int usbhid_mouse_event::X_bits |
X axis bit resolution
Definition at line 311 of file usbh_hid.h.
uint32_t usbhid_mouse_event::X_raw |
mouse report X axis raw data
Definition at line 314 of file usbh_hid.h.
signed int usbhid_mouse_event::Y |
mouse Y axis value
Definition at line 307 of file usbh_hid.h.
int usbhid_mouse_event::Y_bits |
Y axis bit resolution
Definition at line 312 of file usbh_hid.h.
uint32_t usbhid_mouse_event::Y_raw |
mouse report Y axis raw data
Definition at line 315 of file usbh_hid.h.