MDK-ARM Keil, MDK-ARM Datasheet - Page 149

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Getting Started: Building Applications with RL-ARM
Then we call the CAN send function:
CAN_send (1, &msg_send, 0x0F00);
This will place the CAN message into the message queue. The message queue is
a First-In-First-Out (FIFO) buffer, so the messages are guaranteed to be sent in
order. The “number of transmit objects” in
FIFO buffer in message frames. If the FIFO becomes full, the CAN send
function will wait for its timeout period for a message slot to become free. As
with other RTX functions, this will cause the task to enter the WAITING state, so
that the next task in the READY state enter the RUN state.
if (CAN_receive (1, &msg_rece, 0x00FF) == CAN_OK)
}
The CAN Receive function operates in a similar fashion. As messages are
received, they are placed into the receive-object FIFO. The CAN Receive
function is then used to access message frames in the FIFO. If the FIFO is
empty, the timeout period specifies the number of RTX clock ticks
CAN_receive() will wait for a message to arrive.
Exercise: First Project
The first RL-CAN driver project guides you through setting up the RL-CAN
driver to transmit and receive CAN messages.
Remote Request
The RL-CAN driver may also send and respond to remote request frames. First,
you must define the message frame as a remote request.
CAN_msg msg_rmt = {
};
When this message is sent, the message frame contains no data and the remote
request bit is set. When this frame is sent, every node on the network will
receive it. Each node will inspect the message identifier.
21,
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
1,
2,
STANDARD_FORMAT,
REMOTE_FRAME
Rx_val = msg_rece.data [0];
CAN_cfg.h
defines the depth of the
{
149

Related parts for MDK-ARM