USB-BDI
|
the method in this file helps sending and receiving packages More...
#include "usbpdi_common.h"
#include "usbpdi_main.h"
#include "dispatch.h"
#include "BDI_555.h"
#include "uart.h"
Go to the source code of this file.
Functions | |
void | initPacket (unsigned char mainType, unsigned char subType, unsigned short dataLength) |
this method prepares a package before its send to the host | |
void | dispatch (unsigned short dataLength) |
Handles the MSG from the host. | |
Variables | |
unsigned short | uart0InBufferLen |
unsigned short | doNothing |
the method in this file helps sending and receiving packages
Definition in file dispatch.c.
void dispatch | ( | unsigned short | dataLength | ) |
Handles the MSG from the host.
dataLength | Length of the attached data |
Definition at line 56 of file dispatch.c.
void initPacket | ( | unsigned char | mainType, |
unsigned char | subType, | ||
unsigned short | dataLength | ||
) |
this method prepares a package before its send to the host
mainType | Type of the package |
subType | Subtype of the package |
dataLength | Length of the attached data |
Definition at line 41 of file dispatch.c.
unsigned short doNothing |
is used to stop compiler warnings
Definition at line 32 of file dispatch.c.
unsigned short uart0InBufferLen |
uart0 buffer length
Definition at line 30 of file dispatch.c.