![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "UsbDeviceHidCom.h"
Go to the source code of this file.
Macros | |
| #define | __USBDEVICEHIDCOM_C__ |
Functions | |
| static void | RxTxCallback (stc_usbn_t *pstcUsb, struct stc_usbn_endpoint_data *pstcEndpoint) |
| Receive or transmitted data callback. More... | |
| static void | ConfCallback (stc_usbn_t *pstcUsb) |
| Configuration change callback, used to see if configuration is set or cleared. More... | |
| void | UsbDeviceHidCom_Init (stc_usbn_t *pstcUsb) |
| Initialisation callback. More... | |
| boolean_t | UsbDeviceHidCom_Send (uint8_t *pu8Buffer, en_usbsend_mode_t enMode) |
| Send data. More... | |
| boolean_t | UsbDeviceHidCom_IsSending () |
| Check if data transfer is still in process. More... | |
| boolean_t | UsbDeviceHidCom_DataSent () |
| Check if data transfer was transmitted. More... | |
| uint32_t | UsbDeviceHidCom_GetReceivedData (uint8_t *pu8OutBuffer) |
| Send data. More... | |
Variables | |
| static const uint8_t | u8MaxSupportedEndpoints = 2 |
| static stc_usbn_endpoint_data_t * | ppstcUsedEndpoints [2] |
| static stc_usbn_endpoint_buffer_t | pstcEndpointBuffers [2] |
| static uint8_t | ppu8Buffers [2][64] |
| static const uint32_t | pu32BufferSizes [2] = {64,64} |
| static stc_usbn_endpoint_data_t * | pstcEndpointIN |
| static stc_usbn_endpoint_data_t * | pstcEndpointOUT |
| static boolean_t | bDataReceived = FALSE |
| static boolean_t | bDataSent = TRUE |
| static boolean_t | bReady = FALSE |
| static stc_usbn_t * | pstcUsbHandle = NULL |
CONST USB_ASSISTANT_OFF
A detailed description is available at USB Device HID Com Module description
History:
Definition in file UsbDeviceHidCom.c.
| #define __USBDEVICEHIDCOM_C__ |
Definition at line 56 of file UsbDeviceHidCom.c.
|
static |
Configuration change callback, used to see if configuration is set or cleared.
| pstcUsb | Pointer to USB instance |
Definition at line 110 of file UsbDeviceHidCom.c.
References bReady, FALSE, TRUE, UsbConfigured, and UsbDevice_GetStatus().
Referenced by UsbDeviceHidCom_Init().


|
static |
Receive or transmitted data callback.
| pstcUsb | Pointer to USB instance |
| pstcEndpoint | Pointer to endpoint instance |
Definition at line 132 of file UsbDeviceHidCom.c.
References bDataReceived, bDataSent, TRUE, and stc_usbn_endpoint_data::u8EndpointAddress.
Referenced by UsbDeviceHidCom_Init().

Definition at line 87 of file UsbDeviceHidCom.c.
Referenced by RxTxCallback(), and UsbDeviceHidCom_GetReceivedData().
Definition at line 88 of file UsbDeviceHidCom.c.
Referenced by RxTxCallback(), UsbDeviceHidCom_DataSent(), UsbDeviceHidCom_IsSending(), and UsbDeviceHidCom_Send().
Definition at line 89 of file UsbDeviceHidCom.c.
Referenced by ConfCallback(), and UsbDeviceHidCom_Send().
|
static |
Definition at line 81 of file UsbDeviceHidCom.c.
|
static |
Definition at line 83 of file UsbDeviceHidCom.c.
Referenced by UsbDeviceHidCom_Init().
|
static |
Definition at line 82 of file UsbDeviceHidCom.c.
|
static |
Definition at line 85 of file UsbDeviceHidCom.c.
|
static |
Definition at line 86 of file UsbDeviceHidCom.c.
|
static |
Definition at line 90 of file UsbDeviceHidCom.c.
Referenced by UsbDeviceHidCom_GetReceivedData(), UsbDeviceHidCom_Init(), and UsbDeviceHidCom_Send().
|
static |
Definition at line 84 of file UsbDeviceHidCom.c.
Referenced by UsbDeviceHidCom_Init().
|
static |
Definition at line 80 of file UsbDeviceHidCom.c.
Referenced by UsbDeviceHidCom_Init().