USB-BDI
Functions | Variables
M:/USB-BDI/USB-BDI/Firmware/MPC555-USB-BDI/src/dispatch.c File Reference

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

Detailed Description

the method in this file helps sending and receiving packages

Author:
Schlaepfer Stephan
Version:
1.0
Date:
24.10.2006

Definition in file dispatch.c.


Function Documentation

void dispatch ( unsigned short  dataLength)

Handles the MSG from the host.

Parameters:
dataLengthLength 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

Parameters:
mainTypeType of the package
subTypeSubtype of the package
dataLengthLength of the attached data

Definition at line 41 of file dispatch.c.


Variable Documentation

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.

 All Files Functions Variables Defines