Library Function Definition And Description - ICP DAS USA mPAC-7186EXD-CAN User Manual

Table of Contents

Advertisement

3.1 Library Function Definition and Description

The functions of XC100 library file are presented in the following table. They
are provided to help users construct their characteristic CAN device. For the
detail information of each function, please refer to the following sub-section.
Function definition
CAN_Reset
XC100Init
XC100Init_Listen
SetCANBaud
SetCANMask
CAN_InstallIrq
CAN_RemoveIrq
CAN_Restore
CAN_CreateBuffer
SendCANMsg
SendCANMsg_NonBlock
GetNonBlockTxBufferLockedCount
GetNonBlockTxIncompleteCount
GetCANMsg
GetStatus
ClearStatus
L1Off
L2Off
L3Off
L1On
L2On
L3On
UserCANInt
CAN_SearchBaud
CAN_BusOff_Recovery
Table3.1
I-7188XBD-CAN/μPAC-7186EXD-CAN user manual (ver.1.0.3, May/09/2014)
CAN controller hardware reset
Initialize the XC100 hardware and let the
CAN chip into normal or listen only mode
Change CAN baud
Change CAN message filter
Enable the embedded controller interrupt
Disable the embedded controller interrupt
Release the resource and disable the
embed controller interrupt
Change the reception and transmission
buffer sizes
Send a CAN message to the CAN network
by using blocking or non-blocking method.
Get Transmission Buffer Lock retry count of
sending CAN message with non-blocking
method
Get Transmission Incomplete retry count of
sending CAN message with non-blocking
method
Receive a CAN message
Obtain the CAN controller status and
reception/transmission buffer status
Reset the reception and transmission buffer
status
Turn LED0 off
Turn LED1 off
Turn LED2 off
Turn LED0 on
Turn LED1 on
Turn LED2 on
Design user-defined interrupt routine
Search the necessary CAN Bus baud rate
When CAN Bus off, calling this API to
recover the status of CAN Bus.
The function list of the XC100 library file
Description
Page
21
22
25
26
27
28
29
30
31
33
34
35
37
38
39
40
41
42
43
44
45
47
48
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7188xbd-can

Table of Contents