projekty/Source/example1/src/CanTest.c File Reference

#include "CanTest.h"

Go to the source code of this file.

Functions

void TestTxSR (char *str, short sCANxEnable)
uint32_t TestICR (short sCAN, char *str, short enable)
short TestRFS (short sCan, char *str, short sCANxEnable)
short TestSR (short sCan, char *str, short sCANxEnable)
short TestGSR (short sCan, char *str, short sCANxEnable)
void PrintCANsStatus (short can, char *str, short sCANxEnable)


Function Documentation

void PrintCANsStatus ( short  can,
char *  str,
short  sCANxEnable 
)

Definition at line 153 of file CanTest.c.

References disableIRQ(), enableIRQ(), printf(), TestGSR(), TestICR(), TestSR(), TestTxSR(), and WD_Reset().

short TestGSR ( short  sCan,
char *  str,
short  sCANxEnable 
)

Definition at line 133 of file CanTest.c.

References CAN1_GSR, CAN2_GSR, CAN4_GSR, disableIRQ(), enableIRQ(), GSR_BS, GSR_DOS, GSR_ES, GSR_TBS, GSR_TCS, GSR_TS, printf(), and WD_Reset().

Referenced by PrintCANsStatus().

uint32_t TestICR ( short  sCAN,
char *  str,
short  enable 
)

Definition at line 47 of file CanTest.c.

References CAN1_ICR, CAN1_SR, CAN2_ICR, CAN4_ICR, ICR_ALI, ICR_BEI, ICR_DOI, ICR_EI, ICR_EPI, ICR_RI, ICR_TI1, ICR_WUI, printf(), and WD_Reset().

Referenced by PrintCANsStatus().

short TestRFS ( short  sCan,
char *  str,
short  sCANxEnable 
)

Definition at line 96 of file CanTest.c.

References BP, CAN1_RFS, CAN2_RFS, CAN4_RFS, disableIRQ(), and printf().

short TestSR ( short  sCan,
char *  str,
short  sCANxEnable 
)

Definition at line 111 of file CanTest.c.

References CAN1_SR, CAN2_SR, CAN4_SR, disableIRQ(), enableIRQ(), PCC_CAN1, PCC_CAN2, PCC_CAN4, printf(), RS_BS, RS_DOS, RS_ES, RS_RS, RS_RSB, RS_TBS1, RS_TCS1, RS_TS1, SCB_PCONP, and WD_Reset().

Referenced by PrintCANsStatus().

void TestTxSR ( char *  str,
short  sCANxEnable 
)

Definition at line 36 of file CanTest.c.

References CAN_TxSR, disableIRQ(), enableIRQ(), printf(), TxSR_TCS, TxSR_TS1, TxSR_TS2, TxSR_TS4, and WD_Reset().

Referenced by PrintCANsStatus().


Generated on Fri Sep 21 13:41:55 2007 for example1 by  doxygen 1.4.7