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

#include "UsbFunction.h"
Include dependency graph for UsbClass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BUFFER_SIZE_ENDPOINT1   3000

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 pu8Buffer, 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)

Detailed Description

USB Descriptors File

History:

Definition in file UsbClass.h.


Define Documentation

#define BUFFER_SIZE_ENDPOINT1   3000

Definition at line 57 of file UsbClass.h.


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:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

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