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

This file handles everything which has to do with the BDI. More...

#include "usbpdi_common.h"
#include "usbpdi_main.h"
#include "delay.h"
#include "TP3465regs.h"

Go to the source code of this file.

Functions

void initTP3465 ()
 initializes the TP3465
void initBDI ()
 initializes the endpoints used to program the msp555
void exceptionOnTimeoutOn ()
 turns exceptions On Timeout On
void exceptionOnTimeoutOff ()
 turns exceptions On Timeout Off
void BDI_get_freeze ()
 freezes the BDI
void sendPacket (unsigned short dataLength)
 starts the sending of the package
void handelBDIPackages ()
 this method receives and sends packages from/too the Host.

Variables

volatile __bit exceptionOnTimeout
volatile unsigned char exceptionCount
unsigned short outBufIndex
unsigned short inBufIndex

Detailed Description

This file handles everything which has to do with the BDI.

Author:
Tinner Marco
Version:
1.1
Date:
06.1.2012

Definition in file BDI.c.


Function Documentation

void initBDI ( )

initializes the endpoints used to program the msp555

disable timeouts, configure endpoint 2 and 6 and reset FIFO's of endpoint 2 and 6

Definition at line 58 of file BDI.c.

void initTP3465 ( )

initializes the TP3465

The TP3465 is a chip that allows the CPU to communicate over a MICROWIRE interface with a peripheral device.

Definition at line 45 of file BDI.c.

void sendPacket ( unsigned short  dataLength)

starts the sending of the package

writes the length of the package which should be send in the bytecount register. This step then triggers the sending of the package.

Parameters:
dataLengthnummber of bytes which want to be sent

Definition at line 112 of file BDI.c.


Variable Documentation

volatile unsigned char exceptionCount

number of timeout exception occurred

Definition at line 32 of file BDI.c.

volatile __bit exceptionOnTimeout

This bit is set if a exception on timeout occurs

Definition at line 30 of file BDI.c.

unsigned short inBufIndex

current location of INBUFFER

Definition at line 36 of file BDI.c.

unsigned short outBufIndex

current location of OUTBUFFER

Definition at line 34 of file BDI.c.

 All Files Functions Variables Defines