![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "UsbDeviceHidKeyboard.h"
Go to the source code of this file.
Functions | |
| static boolean_t | SendData (uint8_t *pu8Buffer, uint32_t u32DataSize, en_usbsend_mode_t enMode) |
| static void | ConfCallback (stc_usbn_t *pstcUsb) |
| Configuration change callback, used to see if configuration is set or cleared. More... | |
| void | UsbDeviceHidKeyboard_Init (stc_usbn_t *pstcUsb) |
| void | UsbDeviceHidKeyboard_SetModifierKey (uint8_t u8ModifierKey) |
| void | UsbDeviceHidKeyboard_ClearModifierKey (uint8_t u8ModifierKey) |
| void | UsbDeviceHidKeyboard_KeyPress (uint8_t u8Index, uint8_t u8KeyCode) |
| void | UsbDeviceHidKeyboard_KeyDown (uint8_t u8Index, uint8_t u8KeyCode) |
| void | UsbDeviceHidKeyboard_KeyUp (uint8_t u8Index, uint8_t u8KeyCode) |
| boolean_t | UsbDeviceHidKeyboard_IsConnected (void) |
Variables | |
| const uint8_t | u8AsciiToKeyCode [] |
| static uint8_t | DataSentFlags = 0 |
| static uint8_t | pu8KeyboardData [8] = {0,0,0,0,0,0,0,0} |
| static stc_usbn_endpoint_data_t * | pstcEndpointIN |
| static stc_usbn_endpoint_buffer_t | stcEndpointBufferIN |
| static stc_usbn_t * | pstcUsbHandle = NULL |
| static boolean_t | bReady = FALSE |
CONST USB_ASSISTANT_OFF
A detailed description is available at USB Device Keyboard Module description
History:
Definition in file UsbDeviceHidKeyboard.c.
|
static |
Configuration change callback, used to see if configuration is set or cleared.
| pstcUsb | Pointer to USB instance |
Definition at line 358 of file UsbDeviceHidKeyboard.c.
References bReady, FALSE, TRUE, UsbConfigured, and UsbDevice_GetStatus().
Referenced by UsbDeviceHidKeyboard_Init().


|
static |
Is called from main application to send data via endpoint
| pu8Buffer | Buffer to send |
| u32DataSize | Buffersize |
| enMode | polled sending, interrupt sending or DMA |
Definition at line 424 of file UsbDeviceHidKeyboard.c.
References DataSentFlags, FALSE, pstcUsbHandle, TRUE, UsbConfigured, UsbDevice_GetStatus(), UsbDevice_SendData(), and UsbPOLL.
Referenced by UsbDeviceHidKeyboard_ClearModifierKey(), UsbDeviceHidKeyboard_KeyDown(), UsbDeviceHidKeyboard_KeyPress(), UsbDeviceHidKeyboard_KeyUp(), and UsbDeviceHidKeyboard_SetModifierKey().


Definition at line 342 of file UsbDeviceHidKeyboard.c.
Referenced by ConfCallback(), and UsbDeviceHidKeyboard_IsConnected().
|
static |
Definition at line 337 of file UsbDeviceHidKeyboard.c.
Referenced by SendData().
|
static |
Definition at line 339 of file UsbDeviceHidKeyboard.c.
|
static |
Definition at line 341 of file UsbDeviceHidKeyboard.c.
Referenced by SendData(), and UsbDeviceHidKeyboard_Init().
|
static |
Definition at line 338 of file UsbDeviceHidKeyboard.c.
Referenced by UsbDeviceHidKeyboard_ClearModifierKey(), UsbDeviceHidKeyboard_KeyDown(), UsbDeviceHidKeyboard_KeyPress(), UsbDeviceHidKeyboard_KeyUp(), and UsbDeviceHidKeyboard_SetModifierKey().
|
static |
Definition at line 340 of file UsbDeviceHidKeyboard.c.
Referenced by UsbDeviceHidKeyboard_Init().