![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
Data Structures | |
| struct | KeyboardData |
Macros | |
| #define | KEYCODE_ASCII(keycode) u8Keycodes[keycode] |
Typedefs | |
| typedef struct KeyboardData | KeyboardData_t |
Functions | |
| boolean_t | UsbHostHidKeyboard_InitHandler (stc_usbn_t *pstcUsb, uint8_t *pu8Configuration, uint32_t u32Length) |
| boolean_t | UsbHostHidKeyboard_DeinitHandler (stc_usbn_t *pstcUsb) |
| boolean_t | UsbHostHidKeyboard_DriverActive (void) |
| void | UsbHostHidKeyboard_SetCallback (void(*Handler)(KeyboardData_t *stcData)) |
| void | UsbHostHidKeyboard_RemoveCallback (void) |
| char_t | UsbHostHidKeyboard_GetCh (volatile uint32_t u32TimeOut) |
Variables | |
| const uint8_t | u8Keycodes [] |
Provided functions of USB Host HID Keyboard module:
Following procedures are used for the UsbHostClassSupervisor:
Used to connect USB keyboards to the MCU
| #define KEYCODE_ASCII | ( | keycode | ) | u8Keycodes[keycode] |
Definition at line 106 of file UsbHostHidKeyboard.h.
Referenced by UsbHostHidKeyboard_GetCh().
| typedef struct KeyboardData KeyboardData_t |
| boolean_t UsbHostHidKeyboard_DeinitHandler | ( | stc_usbn_t * | pstcUsb | ) |
Definition at line 456 of file UsbHostHidKeyboard.c.
References pstcUsbHandle, and TRUE.
| boolean_t UsbHostHidKeyboard_DriverActive | ( | void | ) |
Definition at line 463 of file UsbHostHidKeyboard.c.
References pstcUsbHandle.
| char_t UsbHostHidKeyboard_GetCh | ( | volatile uint32_t | u32TimeOut | ) |
Definition at line 508 of file UsbHostHidKeyboard.c.
References bKeyboardChanged, FALSE, KEYCODE_ASCII, pstcUsbHandle, KeyboardData::u8KeyCode1, KeyboardData::u8KeyCode2, and KeyboardData::u8ModifierKeys.
| boolean_t UsbHostHidKeyboard_InitHandler | ( | stc_usbn_t * | pstcUsb, |
| uint8_t * | pu8Configuration, | ||
| uint32_t | u32Length | ||
| ) |
Definition at line 373 of file UsbHostHidKeyboard.c.
References EndpointIN, EndpointOUT, FALSE, pstcUsbHandle, TRUE, u16MaxPackageSizeIN, u16MaxPackageSizeOUT, u8EndpointIN, u8EndpointOUT, u8MouseData, USB_IN_DIRECTION, USBDBG, USBDBGVAL8, and UsbHostHidKeyboard_DataReceivedCallback().

| void UsbHostHidKeyboard_RemoveCallback | ( | void | ) |
Definition at line 503 of file UsbHostHidKeyboard.c.
References KeyEventHandler.
| void UsbHostHidKeyboard_SetCallback | ( | void(*)(KeyboardData_t *stcData) | Handler | ) |
Definition at line 498 of file UsbHostHidKeyboard.c.
References KeyEventHandler.
| const uint8_t u8Keycodes[] |
Definition at line 95 of file UsbHostHidKeyboard.c.