PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
USB Device Middleware: HID Mouse

Functions

void UsbDeviceHidMouse_Init (stc_usbn_t *pstcUsb)
 
void UsbDeviceHidMouse_Scroll (int8_t i8Scroll)
 
void UsbDeviceHidMouse_RightClick (void)
 
void UsbDeviceHidMouse_RightDoubleClick (void)
 
void UsbDeviceHidMouse_RightDown (void)
 
void UsbDeviceHidMouse_RightUp (void)
 
void UsbDeviceHidMouse_LeftClick (void)
 
void UsbDeviceHidMouse_LeftDoubleClick (void)
 
void UsbDeviceHidMouse_LeftDown (void)
 
void UsbDeviceHidMouse_LeftUp (void)
 
void UsbDeviceHidMouse_Move (int8_t i8X, int8_t i8Y)
 
boolean_t UsbDeviceHidMouse_IsConnected (void)
 

Detailed Description

Provided functions of USB Device Mouse module:

Used to enumerate a mouse device

Function Documentation

boolean_t UsbDeviceHidMouse_IsConnected ( void  )

Return connected state

Returns
TRUE if ready

Definition at line 344 of file UsbDeviceHidMouse.c.

References bReady.

void UsbDeviceHidMouse_LeftClick ( void  )

Mouse Left Click (Up-Down-Up)

Definition at line 218 of file UsbDeviceHidMouse.c.

References UsbDeviceHidMouse_LeftDown(), and UsbDeviceHidMouse_LeftUp().

Here is the call graph for this function:

void UsbDeviceHidMouse_LeftDoubleClick ( void  )

Mouse Left Click (Up-Down-Up-Down-Up)

Definition at line 231 of file UsbDeviceHidMouse.c.

References UsbDeviceHidMouse_LeftDown(), and UsbDeviceHidMouse_LeftUp().

Here is the call graph for this function:

void UsbDeviceHidMouse_LeftDown ( void  )

Mouse Left Down

Definition at line 245 of file UsbDeviceHidMouse.c.

References pu8MouseData, SendData(), and UsbPOLL.

Referenced by UsbDeviceHidMouse_LeftClick(), and UsbDeviceHidMouse_LeftDoubleClick().

Here is the call graph for this function:

Here is the caller graph for this function:

void UsbDeviceHidMouse_LeftUp ( void  )

Mouse Left Up

Definition at line 259 of file UsbDeviceHidMouse.c.

References pu8MouseData, SendData(), and UsbPOLL.

Referenced by UsbDeviceHidMouse_LeftClick(), and UsbDeviceHidMouse_LeftDoubleClick().

Here is the call graph for this function:

Here is the caller graph for this function:

void UsbDeviceHidMouse_Move ( int8_t  i8X,
int8_t  i8Y 
)

Move Mouse

Parameters
i8XMove in X direction
i8YMove in Y direction

Definition at line 205 of file UsbDeviceHidMouse.c.

References pu8MouseData, SendData(), and UsbPOLL.

Here is the call graph for this function:

void UsbDeviceHidMouse_RightClick ( void  )

Mouse Right Click (Up-Down-Up)

Definition at line 273 of file UsbDeviceHidMouse.c.

References UsbDeviceHidMouse_RightDown(), and UsbDeviceHidMouse_RightUp().

Here is the call graph for this function:

void UsbDeviceHidMouse_RightDoubleClick ( void  )

Mouse Right Click (Up-Down-Up-Down-Up)

Definition at line 285 of file UsbDeviceHidMouse.c.

References UsbDeviceHidMouse_RightDown(), and UsbDeviceHidMouse_RightUp().

Here is the call graph for this function:

void UsbDeviceHidMouse_RightDown ( void  )

Mouse Right Down

Definition at line 299 of file UsbDeviceHidMouse.c.

References pu8MouseData, SendData(), and UsbPOLL.

Referenced by UsbDeviceHidMouse_RightClick(), and UsbDeviceHidMouse_RightDoubleClick().

Here is the call graph for this function:

Here is the caller graph for this function:

void UsbDeviceHidMouse_RightUp ( void  )

Mouse Right Up

Definition at line 313 of file UsbDeviceHidMouse.c.

References pu8MouseData, SendData(), and UsbPOLL.

Referenced by UsbDeviceHidMouse_RightClick(), and UsbDeviceHidMouse_RightDoubleClick().

Here is the call graph for this function:

Here is the caller graph for this function:

void UsbDeviceHidMouse_Scroll ( int8_t  i8Scroll)

Scroll Wheel Movement

Parameters
i8ScrollMove

Definition at line 329 of file UsbDeviceHidMouse.c.

References pu8MouseData, SendData(), and UsbPOLL.

Here is the call graph for this function: