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