PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
UsbHostHidCom.c File Reference
#include "usbhosthidcom.h"
Include dependency graph for UsbHostHidCom.c:

Go to the source code of this file.

Functions

void UsbHostHidCom_DataReceivedHandler (stc_usbn_t *pstcUsb)
 
void UsbHostHidCom_DataSentHandler (stc_usbn_t *pstcUsb)
 
void UsbHostHidCom_SetDataSentHandler (void(*_UsbHostHidComDataSentHandler)(void))
 
void UsbHostHidCom_SetDataReceivedHandler (void(*_UsbHostHidComDataReceivedHandler)(uint8_t *pu8Buffer))
 
void UsbHostHidCom_InitiateSending (uint8_t *pu8Buffer)
 
void UsbHostHidCom_SendPolled (uint8_t *pu8Buffer)
 
uint8_t * UsbHostHidCom_ReceivePolled (void)
 
boolean_t UsbHostHidCom_IsSent (void)
 
boolean_t UsbHostHidCom_IsSending (void)
 
boolean_t UsbHostHidCom_IsReceived (void)
 
boolean_t UsbHostHidCom_InitHandler (stc_usbn_t *pstcUsb, uint8_t *pu8Configuration, uint32_t u32Length)
 
boolean_t UsbHostHidCom_DeinitHandler (stc_usbn_t *pstcUsb)
 
boolean_t UsbHostHidCom_DriverActive (void)
 

Variables

static stc_host_endpoint_t * EndpointOUT
 
static stc_host_endpoint_t * EndpointIN
 
static uint8_t u8EndpointIN
 
static uint8_t u8EndpointOUT
 
static uint16_t u16MaxPackageSizeIN
 
static uint16_t u16MaxPackageSizeOUT
 
static volatile boolean_t bDataSent = FALSE
 
static volatile boolean_t bDataSending = FALSE
 
static volatile boolean_t bDataReceived = FALSE
 
static stc_usbn_t * pstcUsbHandle = NULL
 
static volatile uint8_t u8Status = 0
 
void(* UsbHostHidComDataSentHandler )(void)=0
 
void(* UsbHostHidComDataReceivedHandler )(uint8_t *pu8Buffer)=0
 
static uint8_t pu8DataReceived [64]
 

Detailed Description

Part of FSEU USB Host Driver Module for use with Fujitsu HID Com Device

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

History:

  • 2012-07-18 1.0 MSc First version
  • 2013-10-14 1.1 MSc PDL support added

Definition in file UsbHostHidCom.c.

Variable Documentation

stc_host_endpoint_t* EndpointIN
static

Definition at line 64 of file UsbHostHidCom.c.

Referenced by UsbHostHidCom_InitHandler().

stc_host_endpoint_t* EndpointOUT
static
uint8_t pu8DataReceived[64]
static
uint16_t u16MaxPackageSizeIN
static

Definition at line 66 of file UsbHostHidCom.c.

Referenced by UsbHostHidCom_InitHandler().

uint16_t u16MaxPackageSizeOUT
static

Definition at line 66 of file UsbHostHidCom.c.

Referenced by UsbHostHidCom_InitHandler().

uint8_t u8EndpointIN
static

Definition at line 65 of file UsbHostHidCom.c.

Referenced by UsbHostHidCom_InitHandler().

uint8_t u8EndpointOUT
static

Definition at line 65 of file UsbHostHidCom.c.

Referenced by UsbHostHidCom_InitHandler().

volatile uint8_t u8Status = 0
static

Definition at line 71 of file UsbHostHidCom.c.

Referenced by Csv_GetCsvFailCause(), Mfs_GetStatus(), and UsbHostHidCom_DeinitHandler().

void(* UsbHostHidComDataReceivedHandler)(uint8_t *pu8Buffer)=0
void(* UsbHostHidComDataSentHandler)(void)=0