![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "UsbDeviceHidJoystick.h"
Go to the source code of this file.
Variables | |
| static uint8_t | DataSentFlags = 0 |
| static uint8_t | pu8JoystickData [4] = {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 Joystick Module description
History:
Definition in file UsbDeviceHidJoystick.c.
|
static |
Configuration change callback, used to see if configuration is set or cleared.
| pstcUsb | Pointer to USB instance |
Definition at line 101 of file UsbDeviceHidJoystick.c.
References bReady, FALSE, TRUE, UsbConfigured, and UsbDevice_GetStatus().
Referenced by UsbDeviceHidJoystick_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 167 of file UsbDeviceHidJoystick.c.
References DataSentFlags, FALSE, pstcUsbHandle, TRUE, UsbConfigured, UsbDevice_GetStatus(), UsbDevice_SendData(), and UsbPOLL.
Referenced by UsbDeviceHidJoystick_ChangeButton1(), UsbDeviceHidJoystick_ChangeButton2(), UsbDeviceHidJoystick_ChangeButton3(), UsbDeviceHidJoystick_ChangeButton4(), UsbDeviceHidJoystick_ChangeHatDown(), UsbDeviceHidJoystick_ChangeHatLeft(), UsbDeviceHidJoystick_ChangeHatNoDirection(), UsbDeviceHidJoystick_ChangeHatRight(), UsbDeviceHidJoystick_ChangeHatUp(), UsbDeviceHidJoystick_ChangeThrottle(), UsbDeviceHidJoystick_ChangeX(), UsbDeviceHidJoystick_ChangeXY(), and UsbDeviceHidJoystick_ChangeY().


Definition at line 85 of file UsbDeviceHidJoystick.c.
Referenced by ConfCallback(), and UsbDeviceHidJoystick_IsConnected().
|
static |
Definition at line 80 of file UsbDeviceHidJoystick.c.
Referenced by SendData().
|
static |
Definition at line 82 of file UsbDeviceHidJoystick.c.
|
static |
Definition at line 84 of file UsbDeviceHidJoystick.c.
Referenced by SendData(), and UsbDeviceHidJoystick_Init().
|
static |
Definition at line 81 of file UsbDeviceHidJoystick.c.
Referenced by UsbDeviceHidJoystick_ChangeButton1(), UsbDeviceHidJoystick_ChangeButton2(), UsbDeviceHidJoystick_ChangeButton3(), UsbDeviceHidJoystick_ChangeButton4(), UsbDeviceHidJoystick_ChangeHatDown(), UsbDeviceHidJoystick_ChangeHatLeft(), UsbDeviceHidJoystick_ChangeHatNoDirection(), UsbDeviceHidJoystick_ChangeHatRight(), UsbDeviceHidJoystick_ChangeHatUp(), UsbDeviceHidJoystick_ChangeThrottle(), UsbDeviceHidJoystick_ChangeX(), UsbDeviceHidJoystick_ChangeXY(), and UsbDeviceHidJoystick_ChangeY().
|
static |
Definition at line 83 of file UsbDeviceHidJoystick.c.
Referenced by UsbDeviceHidJoystick_Init().