#include "vxWorks.h"
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "taskLib.h"
#include "ctype.h"
#include "signal.h"
#include "setjmp.h"
#include "iv.h"
#include "intLib.h"
#include "sysLib.h"
#include "netShow.h"
#include "time.h"
#include "timers.h"
#include "tickLib.h"
#include "math.h"
#include "errno.h"
#include "application.conf"
Defines | |
| #define | ITLEVEL 3 |
| #define | RCTLREG 0 |
| #define | RSTAREG 0 |
| #define | RITVREG 2 |
| #define | RADDREG 6 |
| #define | RDATREG 4 |
| #define | RDATREGr 4 |
| #define | RDATREGc 6 |
| #define | CIFCTRL ((maddr << 4) | 0) |
| #define | CIFSTAT ((maddr << 4) | 0) |
| #define | CIFADDR ((maddr << 4) | 0) |
| #define | CIFDATA ((maddr << 4) | 1) |
| #define | CANREADf 0x8000 |
| #define | CANREADi 0x8200 |
| #define | CANWRITf 0x8800 |
| #define | CANWRITi 0x8a00 |
| #define | CANCTRL 0 |
| #define | CANSTAT 1 |
| #define | CANCPUI 2 |
Functions | |
| static void | tstCAN0 (void) |
| static void | tstCAN1 (void) |
| static void | tstCAN2 (void) |
| static void | tstCAN3 (void) |
| static void | tstCAN4 (void) |
| static void | tstCAN5 (void) |
| static void | tstCCXfer (void) |
| static void | tstISEG1 (void) |
| static void | initCAN (void) |
| static int | writCAN (unsigned short raddr, unsigned short caddr, unsigned short cdata) |
| static int | writCANx (unsigned short raddr, unsigned short caddr, unsigned short cdata[], int cnum) |
| static unsigned short | readCAN (unsigned short raddr, unsigned short caddr) |
| static int | readCANx (unsigned short raddr, unsigned short caddr, unsigned short cdata[], int cnum) |
| static int | waitCAN (unsigned short raddr) |
| static int | sndMsg (unsigned short raddr, unsigned short maddr, unsigned short idata[], int cnum) |
| static int | rcvMsg (unsigned short raddr) |
| static int | getMsg (unsigned short raddr, unsigned short maddr, unsigned short idata[], int cnum) |
| static int | reqMsg (unsigned short raddr, unsigned short iaddr) |
| static int | readISEG (unsigned short iaddr, unsigned short idata[], int cnum) |
| static int | writISEG (unsigned short iaddr, unsigned short idata[], int cnum) |
| void | CANtst (void) |
Variables | |
| jmp_buf | env |
| int | MemFaultSig |
| int | MemFaultCode |
| static unsigned short | maddr = 0 |
modification history -------------------- 15aug08 kHu DOXYGEN comments added
| #define CANCPUI 2 |
| #define CANCTRL 0 |
| #define CANREADf 0x8000 |
| #define CANREADi 0x8200 |
| #define CANSTAT 1 |
| #define CANWRITf 0x8800 |
| #define CANWRITi 0x8a00 |
| #define CIFADDR ((maddr << 4) | 0) |
| #define CIFCTRL ((maddr << 4) | 0) |
| #define CIFDATA ((maddr << 4) | 1) |
| #define CIFSTAT ((maddr << 4) | 0) |
| #define ITLEVEL 3 |
| #define RADDREG 6 |
| #define RCTLREG 0 |
| #define RDATREG 4 |
| #define RDATREGc 6 |
| #define RDATREGr 4 |
| #define RITVREG 2 |
| #define RSTAREG 0 |
| void CANtst | ( | void | ) |
| static int getMsg | ( | unsigned short | raddr, | |
| unsigned short | maddr, | |||
| unsigned short | idata[], | |||
| int | cnum | |||
| ) | [static] |
| static void initCAN | ( | void | ) | [static] |
| static int rcvMsg | ( | unsigned short | raddr | ) | [static] |
| static unsigned short readCAN | ( | unsigned short | raddr, | |
| unsigned short | caddr | |||
| ) | [static] |
| static int readCANx | ( | unsigned short | raddr, | |
| unsigned short | caddr, | |||
| unsigned short | cdata[], | |||
| int | cnum | |||
| ) | [static] |
| static int readISEG | ( | unsigned short | iaddr, | |
| unsigned short | idata[], | |||
| int | cnum | |||
| ) | [static] |
| static int reqMsg | ( | unsigned short | raddr, | |
| unsigned short | iaddr | |||
| ) | [static] |
| static int sndMsg | ( | unsigned short | raddr, | |
| unsigned short | maddr, | |||
| unsigned short | idata[], | |||
| int | cnum | |||
| ) | [static] |
| static void tstCAN0 | ( | void | ) | [static] |
| static void tstCAN1 | ( | void | ) | [static] |
| static void tstCAN2 | ( | void | ) | [static] |
| static void tstCAN3 | ( | void | ) | [static] |
| static void tstCAN4 | ( | void | ) | [static] |
| static void tstCAN5 | ( | void | ) | [static] |
| void tstCCXfer | ( | void | ) | [static] |
| void tstISEG1 | ( | void | ) | [static] |
| static int waitCAN | ( | unsigned short | raddr | ) | [static] |
| static int writCAN | ( | unsigned short | raddr, | |
| unsigned short | caddr, | |||
| unsigned short | cdata | |||
| ) | [static] |
| static int writCANx | ( | unsigned short | raddr, | |
| unsigned short | caddr, | |||
| unsigned short | cdata[], | |||
| int | cnum | |||
| ) | [static] |
| static int writISEG | ( | unsigned short | iaddr, | |
| unsigned short | idata[], | |||
| int | cnum | |||
| ) | [static] |
| jmp_buf env |
unsigned short maddr = 0 [static] |
| int MemFaultCode |
| int MemFaultSig |
1.5.6