![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
Functions | |
| void | UsbDeviceHidJoystick_Init (stc_usbn_t *pstcUsb) |
| void | UsbDeviceHidJoystick_ChangeThrottle (int8_t iThrottle) |
| void | UsbDeviceHidJoystick_ChangeX (int8_t iX) |
| void | UsbDeviceHidJoystick_ChangeY (int8_t iY) |
| void | UsbDeviceHidJoystick_ChangeXY (int8_t iX, int8_t iY) |
| void | UsbDeviceHidJoystick_ChangeButton1 (boolean_t bButtonValue) |
| void | UsbDeviceHidJoystick_ChangeButton2 (boolean_t bButtonValue) |
| void | UsbDeviceHidJoystick_ChangeButton3 (boolean_t bButtonValue) |
| void | UsbDeviceHidJoystick_ChangeButton4 (boolean_t bButtonValue) |
| void | UsbDeviceHidJoystick_ChangeHatUp (void) |
| void | UsbDeviceHidJoystick_ChangeHatRight (void) |
| void | UsbDeviceHidJoystick_ChangeHatDown (void) |
| void | UsbDeviceHidJoystick_ChangeHatLeft (void) |
| void | UsbDeviceHidJoystick_ChangeHatNoDirection (void) |
| boolean_t | UsbDeviceHidJoystick_IsConnected (void) |
Provided functions of USB Device Joystick module:
Used to enumerate a joystick device
| void UsbDeviceHidJoystick_ChangeButton1 | ( | boolean_t | bButtonValue | ) |
Used to change the button 1 value
| bButtonValue | TRUE = pressed, FALSE = released |
Definition at line 246 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeButton2 | ( | boolean_t | bButtonValue | ) |
Used to change the button 2 value
| bButtonValue | TRUE = pressed, FALSE = released |
Definition at line 266 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeButton3 | ( | boolean_t | bButtonValue | ) |
Used to change the button 3 value
| bButtonValue | TRUE = pressed, FALSE = released |
Definition at line 286 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeButton4 | ( | boolean_t | bButtonValue | ) |
Used to change the button 4 value
| bButtonValue | TRUE = pressed, FALSE = released |
Definition at line 306 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeHatDown | ( | void | ) |
Used to change the hat direction DOWN
Definition at line 351 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeHatLeft | ( | void | ) |
Used to change the hat direction LEFT
Definition at line 364 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeHatNoDirection | ( | void | ) |
Used to change the hat direction no direction
Definition at line 377 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeHatRight | ( | void | ) |
Used to change the hat direction RIGHT
Definition at line 338 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeHatUp | ( | void | ) |
Used to change the hat direction UP
Definition at line 325 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeThrottle | ( | int8_t | iThrottle | ) |
Used to change the throttle value
| iThrottle | signed byte value |
Definition at line 190 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeX | ( | int8_t | iX | ) |
Used to change the X value
| iX | signed byte value |
Definition at line 203 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeXY | ( | int8_t | iX, |
| int8_t | iY | ||
| ) |
Used to change the X and Y value
| iX | signed byte value |
| iY | signed byte value |
Definition at line 232 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_ChangeY | ( | int8_t | iY | ) |
Used to change the Y value
| iY | signed byte value |
Definition at line 216 of file UsbDeviceHidJoystick.c.
References pu8JoystickData, SendData(), and UsbPOLL.

| void UsbDeviceHidJoystick_Init | ( | stc_usbn_t * | pstcUsb | ) |
Definition at line 116 of file UsbDeviceHidJoystick.c.
References ConfCallback(), stc_usbdevice_class_config::pfnConfCallback, stc_usbdevice_class_config::pfnConnectionCallback, stc_usbdevice_class_config::pfnDisconnectionCallback, stc_usbdevice_class_config::pfnSetupRequestCallback, stc_usbdevice_endpoint_config::pstcEndpointBuffer, pstcUsbHandle, stcEndpointBufferIN, stc_usbdevice_endpoint_config::u8EndpointAddress, stc_usbdevice_class_config::u8InterfaceClass, stc_usbdevice_class_config::u8InterfaceNumber, stc_usbdevice_class_config::u8InterfaceProtocoll, stc_usbdevice_class_config::u8InterfaceSubClass, USBDESCR_ENDPOINT, UsbDevice_RegisterVendorClass(), and UsbDevice_SetupEndpoint().

| boolean_t UsbDeviceHidJoystick_IsConnected | ( | void | ) |
Return connected state
Definition at line 391 of file UsbDeviceHidJoystick.c.
References bReady.