Xc100Init / Xc100Init_Listen - ICP DAS USA mPAC-7186EXD-CAN User Manual

Table of Contents

Advertisement

3.1.2 XC100Init / XC100Init_Listen

Description:
 XC100Init():
Initialize the software buffer and XC100 hardware, which includes
CAN controller, L1 LED, L2 LED, L3 LED and then let CAN Bus into
operation mode.
 XC100Init_Listen():
Initialize the software buffer and XC100 hardware, which includes
CAN controller, L1 LED, L2 LED, L3 LED and then let CAN Bus into
listen only mode. This function is supported by XC100 library v1.80 or
later.
Syntax:
int XC100Init( int TypeOf7188, char IntMode,
int XC100Init_Listen( int TypeOf7188, char IntMode,
Parameter:
 TypeOf7188: define what kind of module you use.
value
0
1
 IntMode: Set the CAN controller interrupt mode. Each bit of IntMode
parameters indicates different function shown as follows.
Receive Interrupt Enable
Transmit Interrupt Enable
Error Warning Interrupt Enable
Data Overrun Interrupt Enable
Wake-up Interrupt Enable
Error Passive Interrupt Enable
Arbitration Lost Interrupt Enable
Bus Error Interrupt Enable
I-7188XBD-CAN/μPAC-7186EXD-CAN user manual (ver.1.0.3, May/09/2014)
unsigned long CANBaud, char BT0,
char BT1, unsigned long AccCode,
unsigned long AccMask)
unsigned long CANBaud, char BT0,
char BT1, unsigned long AccCode,
unsigned long AccMask)
TypeOf7188
For I-7188XBD-CAN
For μPAC-7186EXD-CAN
Interrupt Type
Value of IntMode
0x01
0x02
0x04
0x08
0x10
0x20
0x40
0x80
22

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7188xbd-can

Table of Contents