The CAN_init function sets the baudrate
for the CAN controller specified by ctrl. The
baudrate may be a value from 10,000-1,000,000 (10
Kbps to 1 Mbps).
This function may be invoked one or more times.
The first invocation of CAN_init configures hardware
used by the CAN driver, initializes common resources including
mailboxes used as message FIFOs, and sets the CAN bus baudrate.
Subsequent invocations initialize mailboxes used as message
FIFOs and set the CAN bus baudrate.
The CAN_init function is part of RL-CAN. The prototype is
defined in RTX_CAN.h.
Return Value
The CAN_init function returns one of the following manifest
constants.
CAN_OK
Success.
CAN_MEM_POOL_INIT_ERROR
Indicates the memory pool was incorrectly initialized.
CAN_BAUDRATE_ERROR
Indicates that the communication speed was incorrectly
initialized.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.