PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
UsbHostHidMouse.h File Reference
#include "usb.h"
#include "UsbHost.h"
Include dependency graph for UsbHostHidMouse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stc_point
 
struct  stc_pointdifference
 
struct  stc_mousedata
 

Macros

#define USBHOSTHIDMOUSE_ENABLED   OFF
 
#define MOUSEEVENT_POSITIONX_CHANGED   1
 
#define MOUSEEVENT_POSITIONY_CHANGED   2
 
#define MOUSEEVENT_BUTTON_CHANGED   4
 
#define MOUSEEVENT_SCROLLING_CHANGED   8
 
#define MOUSEEVENT_ANY_CHANGE   0xFF
 

Typedefs

typedef uint8_t buttons_t
 
typedef struct stc_point stc_point_t
 
typedef struct stc_pointdifference stc_pointdifference_t
 
typedef struct stc_mousedata stc_mousedata_t
 
typedef uint8_t MouseEventType_t
 

Functions

boolean_t UsbHostHidMouse_InitHandler (stc_usbn_t *pstcUsb, uint8_t *pu8Configuration, uint32_t u32Length)
 
boolean_t UsbHostHidMouse_DeinitHandler (stc_usbn_t *pstcUsb)
 
void UsbHostHidMouse_SetCallback (void(*Handler)(MouseEventType_t stcEventType, stc_mousedata_t stcInternalMouseData))
 
void UsbHostHidMouse_RemoveCallback (void)
 
stc_point_t UsbHostHidMouse_GetCurrentPosition (void)
 
void UsbHostHidMouse_SetCurrentPosition (uint32_t u32X, uint32_t u32Y)
 
uint32_t UsbHostHidMouse_GetCurrentScrollPosition (void)
 
void UsbHostHidMouse_SetCurrentScrollPosition (uint32_t u32ScrollPosition)
 
buttons_t UsbHostHidMouse_GetButtons (void)
 
boolean_t UsbHostHidMouse_Moved (void)
 
boolean_t UsbHostHidMouse_DriverActive (void)
 

Detailed Description

Part of Spansion USB Host Driver Module

A detailed description is available at USB Host HID Mouse Module description

History:

  • 2011-03-30 1.0 MSc First version
  • 2011-08-24 1.1 MSc Some fixes in X/Y calculation
  • 2012-06-05 1.2 MSc New verison for use with new USB driver for FM3 L3 Rename HidMouse.h -> UsbHostHidMouse.h
  • 2013-10-14 1.3 MSc PDL support added

Definition in file UsbHostHidMouse.h.

Macro Definition Documentation

#define USBHOSTHIDMOUSE_ENABLED   OFF

Definition at line 68 of file UsbHostHidMouse.h.