Controller Area Network (CAN)
Returns:
Returns true if the receive error count has reached the error passive limit, and false if the error
count is below the error passive limit.
6.2.1.7 ROM_CANInit
Initializes the CAN controller after reset.
Prototype:
void
ROM_CANInit(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_CANTABLE is an array of pointers located at ROM_APITABLE[18].
ROM_CANInit is a function pointer located at ROM_CANTABLE[1].
Parameters:
ui32Base is the base address of the CAN controller.
Description:
After reset, the CAN controller is left in the disabled state. However, the memory used for
message objects contains undefined values and must be cleared prior to enabling the CAN
controller the first time. This prevents unwanted transmission or reception of data before the
message objects are configured. This function must be called before enabling the controller
the first time.
Returns:
None.
6.2.1.8 ROM_CANIntClear
Clears a CAN interrupt source.
Prototype:
void
ROM_CANIntClear(uint32_t ui32Base,
uint32_t ui32IntClr)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_CANTABLE is an array of pointers located at ROM_APITABLE[18].
ROM_CANIntClear is a function pointer located at ROM_CANTABLE[0].
Parameters:
ui32Base is the base address of the CAN controller.
ui32IntClr is a value indicating which interrupt source to clear.
Description:
This function can be used to clear a specific interrupt source. The ui32IntClr parameter should
be one of the following values:
April 8, 2013 59