#include <rtx_can.h>
CAN_ERROR CAN_set (
U32 ctrl, /* CAN Controller */
CAN_msg *msg, /* CAN Message */
U16 timeout); /* Time to Wait */
Description
The CAN_set function sets the DATA FRAME message to be sent
automatically by the CAN controller hardware (specified by ctrl) in response to a REMOTE FRAME request.
If the CAN controller hardware supports REMOTE FRAME requests,
this function sets the DATA FRAME message from msg. If the hardware is busy it will retry every timer
tick.
The timeout specifies how long to wait for the
hardware to become available.
timeout
Description
0
Return immediately.
0x0001-0xFFFE
Wait the specified number of RTX Kernel
ticks.
0xFFFF
Wait infinitely.
If the message is not set by the specified time, an error is
returned.
The CAN_set function executes quickly because the CAN
controller hardware is rarely busy for long periods of time.
The CAN_set function is part of RL-CAN. The prototype is
defined in RTX_CAN.h.
Return Value
The CAN_set function returns one of the following manifest
constants.
CAN_OK
Success.
CAN_TIMEOUT
Indicates that the timeout expired before a message was set.
CAN_NOT_IMPLEMENTED_ERROR
Indicates that hardware does not offer this functionality.
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.