@ -155,13 +155,12 @@ a mailbox. When a transmitting mailbox is assigned, sending cannot be canceled.
@@ -155,13 +155,12 @@ a mailbox. When a transmitting mailbox is assigned, sending cannot be canceled.
.id_type = CAN_STANDARD_IDENTIFIER,
.rtr = CAN_DATAFRAME,
.id = 0x123,
.dlc = 8
.dlc = 8,
.data = {1,2,3,4,5,6,7,8}
};
const struct device *can_dev;
int ret;
frame.data = {1,2,3,4,5,6,7,8};
can_dev = device_get_binding("CAN_0");
ret = can_send(can_dev, &frame, K_MSEC(100), NULL, NULL);
@ -196,7 +195,9 @@ occurred. It does not block until the message is sent like the example above.
@@ -196,7 +195,9 @@ occurred. It does not block until the message is sent like the example above.