Library Functions.
More...
Library Functions.
Gets connected device on specific USB port of type HID DEVICE.
- Parameters
-
| USB_Mode | USB mode where to check for connected HID device. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Gets keyboard pressed buttons and ASCII value for pressed button.
- Parameters
-
| USB_Mode | USB mode where read keyboard data. This parameter can be a value of TM_USB_t enumeration |
| *KeyboardStruct | Pointer to TM_USBH_HID_Keyboard_t where values will be stored |
- Return values
-
| Member | of TM_USBH_HID_t enumeration.
- TM_USBH_HID_Keyboard will be returned if data are valid
|
Gets mouse pressed buttons and X/Y cursor positions.
- Parameters
-
| USB_Mode | USB mode where read mouse data. This parameter can be a value of TM_USB_t enumeration |
| *MouseStruct | Pointer to TM_USBH_HID_Mouse_t where values will be stored |
- Return values
-
| Member | of TM_USBH_HID_t enumeration.
- TM_USBH_HID_Mouse will be returned if data are valid
|
Initializes USB HOST HID class for specific USB mode (PORT)
- Parameters
-
| USB_Mode | USB mode where HID HOST class will be registered. This parameter can be a value of TM_USB_t enumeration |
- Return values
-