USB-BDI
Defines | Functions | Variables
M:/USB-BDI/USB-BDI/Firmware/MPC555-USB-BDI/include/BDI_555.h File Reference

headerfile for BDI_555.c More...

#include "BDI.h"

Go to the source code of this file.

Defines

#define BDI_DATA35_LENGTH   5
#define BDI_DATA10_LENGTH   2
#define BDI_10_OFFSET   1
#define BDI_35STATUS_MASK   0x60
#define BDI_35STATUS_VALID   0x00
#define BDI_35STATUS_SEQ_ERROR   0x20
#define BDI_35STATUS_CPU_INT   0x40
#define BDI_35STATUS_NULL   0x60
#define TIMEOUT_EXCEPTION_ON
#define EXCEPTION_COUNT   20

Functions

void BDI_555_init ()
 this method configures the MPC555 specific IO's
void BDI_555_hard_reset ()
 this method resets the BDI if MPC555 is selected
void BDI_555_35 ()
 Send to and receive from BDI (35 bits)
void BDI_555_10 ()
 Send to and receive from BDI (10 bits)

Variables

volatile __bit exceptionOnTimeout
volatile unsigned char exceptionCount

Detailed Description

headerfile for BDI_555.c

Author:
Schlaepfer Stephan
Version:
1.0
Date:
24.10.2006

Definition in file BDI_555.h.


Define Documentation

#define BDI_10_OFFSET   1

offset to second byte

Definition at line 35 of file BDI_555.h.

#define BDI_35STATUS_CPU_INT   0x40

BDI 555 status bit

Definition at line 45 of file BDI_555.h.

#define BDI_35STATUS_MASK   0x60

BDI 555 status bit

Definition at line 39 of file BDI_555.h.

#define BDI_35STATUS_NULL   0x60

BDI 555 status bit

Definition at line 47 of file BDI_555.h.

#define BDI_35STATUS_SEQ_ERROR   0x20

BDI 555 status bit

Definition at line 43 of file BDI_555.h.

#define BDI_35STATUS_VALID   0x00

BDI 555 status bit

Definition at line 41 of file BDI_555.h.

#define BDI_DATA10_LENGTH   2

number of bytes used as payload (10 bits) (555)

Definition at line 33 of file BDI_555.h.

#define BDI_DATA35_LENGTH   5

number of bytes used as payload (35 bits) (555)

Definition at line 31 of file BDI_555.h.

#define EXCEPTION_COUNT   20

timeout exception count

Definition at line 52 of file BDI_555.h.

enable timeout exceptions

Definition at line 50 of file BDI_555.h.


Function Documentation

void BDI_555_10 ( )

Send to and receive from BDI (10 bits)

The data is 2 bytes long and left alligned. !!!UNTESTED!!!!!!UNTESTED!!!!!!UNTESTED!!!!!!UNTESTED!!!

Definition at line 118 of file BDI_555.c.

void BDI_555_35 ( )

Send to and receive from BDI (35 bits)

The data is 5 bytes long and left alligned. DSDI writes MSBit first. DSDO outputs MSBit first.

Definition at line 68 of file BDI_555.c.


Variable Documentation

volatile unsigned char exceptionCount

contains number of exceptions occurred

number of timeout exception occurred

Definition at line 32 of file BDI.c.

volatile __bit exceptionOnTimeout

contains if exception on Timeout is active

This bit is set if a exception on timeout occurs

Definition at line 30 of file BDI.c.

 All Files Functions Variables Defines