canmsg_queue_element()
Enqueue a message
Synopisis
#include <hw/libcan.h>
void canmsg_queue_element( canmsg_list_t* const ml,
canmsg_t* const queue_elem );Arguments
- ml
Message list queue; a pointer to a
canmsg_list_tinstance.- queue_elem
The element to be enqueued; a pointer to a
canmsg_tinstance.
Description
The canmsg_queue_element() function adds the specified element to the end of the queue and updates the queue to reflect the change. The number of elements that can be pushed to the queue isn't limited; however, the element count wraps to zero after UINT_MAX elements.
Page updated:
