dsPid33
src/com.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Bits

Defines

#define DISABLE_TX   U1STAbits.UTXEN = 0
#define ENABLE_TX   U1STAbits.UTXEN = 1
#define DISABLE_T2   U2STAbits.UTXEN = 0
#define ENABLE_TX2   U2STAbits.UTXEN = 1
#define ERR_BLINK_PER   200
#define ERR_BLINK_ON   100
#define OVERRUN_ERROR   U1STAbits.OERR
#define TX_REG_EMPTY   U1STAbits.TRMT
#define FRAME_ERROR   U1STAbits.FERR
#define HEADER   '@'
#define RX_ID_FLAG   COMbits1.bit1
#define UART2_CONT_TIMEOUT   100
#define OVERRUN_ERROR2   U2STAbits.OERR
#define TX2_REG_EMPTY   U2STAbits.TRMT
#define FRAME_ERROR2   U2STAbits.FERR
#define RX2_ID_FLAG   COMbits1.bit2

Functions

unsigned char UartTxBuff[MAX_TX_BUFF__attribute__ ((space(dma), aligned(128)))

Variables

volatile unsigned int BlinkPeriod
unsigned int BlinkOn
long Blink
int ErrCode
unsigned char ErrNo [16]
struct Bits COMbits1
unsigned char Id = 0
volatile unsigned char UartRxBuff [MAX_RX_BUFF][2]
unsigned char UartTmpBuff [MAX_TX_BUFF-4][2]
unsigned char TxFlag = 0
unsigned char ChkSum = 0
unsigned char UartRxCmd [2]
volatile unsigned char UartRxPtrIn = 0
unsigned char UartRxPtrOut = 0
unsigned char UartRxPtrStart = 0
unsigned char UartRxPtrEnd = 0
unsigned char UartRxPtrData = 0
unsigned char TmpPtr
unsigned int UartTxCntr = 0
volatile int UartRxStatus = 0
const unsigned char Test [] = "-mary had a little lamb-"
unsigned char Id2 = 0
unsigned char Tx2Flag = 0
unsigned char ChkSum2 = 0
volatile unsigned char Uart2RxPtrIn = 0
unsigned char Uart2RxPtrOut = 0
unsigned char Uart2RxPtrStart = 0
unsigned char Uart2RxPtrEnd = 0
unsigned char Uart2RxPtrData = 0
unsigned char TmpPtr2
unsigned int Uart2TxCntr = 0
int Uart2ContTxTimer = UART2_CONT_TIMEOUT
volatile int Uart2RxStatus = 0
unsigned int Tx2ContFlag = 0

Define Documentation

#define DISABLE_T2   U2STAbits.UTXEN = 0

Definition at line 7 of file com.h.

#define DISABLE_TX   U1STAbits.UTXEN = 0

Definition at line 5 of file com.h.

#define ENABLE_TX   U1STAbits.UTXEN = 1

Definition at line 6 of file com.h.

#define ENABLE_TX2   U2STAbits.UTXEN = 1

Definition at line 8 of file com.h.

#define ERR_BLINK_ON   100

Definition at line 20 of file com.h.

#define ERR_BLINK_PER   200

Definition at line 19 of file com.h.

#define FRAME_ERROR   U1STAbits.FERR

Definition at line 67 of file com.h.

#define FRAME_ERROR2   U2STAbits.FERR

Definition at line 94 of file com.h.

#define HEADER   '@'

Definition at line 68 of file com.h.

#define OVERRUN_ERROR   U1STAbits.OERR

Definition at line 65 of file com.h.

#define OVERRUN_ERROR2   U2STAbits.OERR

Definition at line 92 of file com.h.

#define RX2_ID_FLAG   COMbits1.bit2

Definition at line 95 of file com.h.

#define RX_ID_FLAG   COMbits1.bit1

Definition at line 69 of file com.h.

#define TX2_REG_EMPTY   U2STAbits.TRMT

Definition at line 93 of file com.h.

#define TX_REG_EMPTY   U1STAbits.TRMT

Definition at line 66 of file com.h.

#define UART2_CONT_TIMEOUT   100

Definition at line 89 of file com.h.


Function Documentation

unsigned char UartTxBuff [MAX_TX_BUFF] __attribute__ ( (space(dma), aligned(128))  )

Variable Documentation

long Blink

Definition at line 149 of file dsPID33_definitions.h.

unsigned int BlinkOn

Definition at line 514 of file dsPID33_definitions.h.

volatile unsigned int BlinkPeriod

Definition at line 513 of file dsPID33_definitions.h.

unsigned char ChkSum = 0

Definition at line 54 of file com.h.

unsigned char ChkSum2 = 0

Definition at line 80 of file com.h.

struct Bits COMbits1

Definition at line 45 of file com.h.

int ErrCode

Definition at line 521 of file dsPID33_definitions.h.

unsigned char ErrNo[16]

Definition at line 23 of file com.h.

unsigned char Id = 0

Definition at line 49 of file com.h.

unsigned char Id2 = 0

Definition at line 76 of file com.h.

const unsigned char Test[] = "-mary had a little lamb-"

Definition at line 71 of file com.h.

unsigned char TmpPtr

Definition at line 62 of file com.h.

unsigned char TmpPtr2

Definition at line 87 of file com.h.

unsigned int Tx2ContFlag = 0

Definition at line 96 of file com.h.

unsigned char Tx2Flag = 0

Definition at line 79 of file com.h.

unsigned char TxFlag = 0

Definition at line 53 of file com.h.

Definition at line 90 of file com.h.

unsigned char Uart2RxPtrData = 0

Definition at line 86 of file com.h.

unsigned char Uart2RxPtrEnd = 0

Definition at line 85 of file com.h.

volatile unsigned char Uart2RxPtrIn = 0

Definition at line 82 of file com.h.

unsigned char Uart2RxPtrOut = 0

Definition at line 83 of file com.h.

unsigned char Uart2RxPtrStart = 0

Definition at line 84 of file com.h.

volatile int Uart2RxStatus = 0

Definition at line 91 of file com.h.

unsigned int Uart2TxCntr = 0

Definition at line 88 of file com.h.

volatile unsigned char UartRxBuff[MAX_RX_BUFF][2]

Definition at line 50 of file com.h.

unsigned char UartRxCmd[2]

Definition at line 55 of file com.h.

unsigned char UartRxPtrData = 0

Definition at line 61 of file com.h.

unsigned char UartRxPtrEnd = 0

Definition at line 60 of file com.h.

volatile unsigned char UartRxPtrIn = 0

Definition at line 57 of file com.h.

unsigned char UartRxPtrOut = 0

Definition at line 58 of file com.h.

unsigned char UartRxPtrStart = 0

Definition at line 59 of file com.h.

volatile int UartRxStatus = 0

Definition at line 64 of file com.h.

unsigned char UartTmpBuff[MAX_TX_BUFF-4][2]

Definition at line 52 of file com.h.

unsigned int UartTxCntr = 0

Definition at line 63 of file com.h.

 All Data Structures Files Functions Variables Defines