PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
USB Host Middleware: HID Keyboard

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 []
 

Detailed Description

Provided functions of USB Host HID Keyboard module:

Following procedures are used for the UsbHostClassSupervisor:

Used to connect USB keyboards to the MCU

Macro Definition Documentation

#define KEYCODE_ASCII (   keycode)    u8Keycodes[keycode]

Definition at line 106 of file UsbHostHidKeyboard.h.

Referenced by UsbHostHidKeyboard_GetCh().

Typedef Documentation

typedef struct KeyboardData KeyboardData_t

Function Documentation

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)
boolean_t UsbHostHidKeyboard_InitHandler ( stc_usbn_t *  pstcUsb,
uint8_t *  pu8Configuration,
uint32_t  u32Length 
)
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.

Variable Documentation

const uint8_t u8Keycodes[]

Definition at line 95 of file UsbHostHidKeyboard.c.