C:/Documents and Settings/mschre/Desktop/96330_usb_template_96338us-v11/96330_usb_function_template-v10/96330_usb_template_96338us-v10/src/usb/UsbClass.c File Reference

#include "base_type.h"
#include "UsbClass.h"
#include "UsbFunction.h"
Include dependency graph for UsbClass.c:

Go to the source code of this file.

Functions

void UsbClass_Init (void)
uint8_t UsbClass_DataReceiveEventEndpoint1 (usb_event_t *stcEvent)
uint32_t UsbClass_GetReceivedDataEndpoint1 (uint8_t **pu8Buffer)
uint8_t SendDataVia5 (puint8_t u8Buffer, uint32_t u32DataSize, uint8_t u8PollingMode)
uint8_t UsbClass_DataSentEventEndpoint5 (usb_event_t *stcEvent)
uint8_t UsbClass_DataSent5 (void)
uint8_t UsbClass_ClassEventHandler (usb_event_t *stcEvent)

Variables

uint8_t DataReceivedFlags = 0
uint8_t DataSentFlags = 0
uint32_t u32LastReceivedSize1
usb_buffer_t stcCustomClassBuffer1
uint8_t pu8CustomClassBufferEndpoint1 [BUFFER_SIZE_ENDPOINT1]

Detailed Description

Add description here...

History:

Definition in file UsbClass.c.


Function Documentation

uint8_t SendDataVia5 ( puint8_t  u8Buffer,
uint32_t  u32DataSize,
uint8_t  u8PollingMode 
)

Is called from main application to send data via endpoint 5

Parameters:
pu8Buffer Buffer to send
u32DataSize Buffersize
u8PollinMode 1: polled sending; 0: interrupt sending;
Returns:
1: if succesful, 0: if usb was not ready

Definition at line 146 of file UsbClass.c.

Here is the call graph for this function:

uint8_t UsbClass_ClassEventHandler ( usb_event_t *  stcEvent  ) 

Is called from UsbFunctions.c when a connect, disconnct or USB class request occurs

Parameters:
stcEvent Event containing all neccesary information

Definition at line 200 of file UsbClass.c.

Here is the caller graph for this function:

uint8_t UsbClass_DataReceiveEventEndpoint1 ( usb_event_t *  stcEvent  ) 

Is called from UsbFunctions.c when a endpoint buffer 1 was received

Parameters:
stcEvent Event containing all neccesary information for receiving data

Definition at line 106 of file UsbClass.c.

Here is the caller graph for this function:

uint8_t UsbClass_DataSent5 ( void   ) 

Is used to use get the sent status of endpoint 5

Definition at line 182 of file UsbClass.c.

uint8_t UsbClass_DataSentEventEndpoint5 ( usb_event_t *  stcEvent  ) 

Is called from UsbFunctions.c when a endpoint buffer 5 was sent

Parameters:
stcEvent Event containing all neccesary information

Definition at line 171 of file UsbClass.c.

Here is the caller graph for this function:

uint32_t UsbClass_GetReceivedDataEndpoint1 ( uint8_t **  pu8Buffer  ) 

Is used to use received data from endpoint 1

Parameters:
pu8Buffer pointer to buffer

Definition at line 125 of file UsbClass.c.

void UsbClass_Init ( void   ) 

Definition at line 88 of file UsbClass.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 71 of file UsbClass.c.

Definition at line 72 of file UsbClass.c.

uint8_t pu8CustomClassBufferEndpoint1[BUFFER_SIZE_ENDPOINT1]

Definition at line 75 of file UsbClass.c.

Definition at line 74 of file UsbClass.c.

Definition at line 73 of file UsbClass.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Wed Mar 31 11:15:04 2010 for UsbFunction by  doxygen 1.6.1