#include "base_type.h"#include "UsbClass.h"#include "UsbFunction.h"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] |
Add description here...
History:
Definition in file UsbClass.c.
Is called from main application to send data via endpoint 5
| pu8Buffer | Buffer to send | |
| u32DataSize | Buffersize | |
| u8PollinMode | 1: polled sending; 0: interrupt sending; |
Definition at line 146 of file UsbClass.c.
| uint8_t UsbClass_ClassEventHandler | ( | usb_event_t * | stcEvent | ) |
Is called from UsbFunctions.c when a connect, disconnct or USB class request occurs
| stcEvent | Event containing all neccesary information |
Definition at line 200 of file UsbClass.c.
| uint8_t UsbClass_DataReceiveEventEndpoint1 | ( | usb_event_t * | stcEvent | ) |
Is called from UsbFunctions.c when a endpoint buffer 1 was received
| stcEvent | Event containing all neccesary information for receiving data |
Definition at line 106 of file UsbClass.c.
| 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
| stcEvent | Event containing all neccesary information |
Definition at line 171 of file UsbClass.c.
Is used to use received data from endpoint 1
| pu8Buffer | pointer to buffer |
Definition at line 125 of file UsbClass.c.
| void UsbClass_Init | ( | void | ) |
Definition at line 88 of file UsbClass.c.
Definition at line 71 of file UsbClass.c.
| uint8_t DataSentFlags = 0 |
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.
1.6.1