canmsg_dequeue_element()

Dequeue a message

Synopisis

#include <hw/libcan.h>

canmsg_t *canmsg_dequeue_element( canmsg_list_t* const ml );

Arguments

ml

Message list queue; a pointer to a canmsg_list_t instance.

Description

The canmsg_dequeue_element() function removes an element from the head of the queue and updates the queue to reflect the change.

Returns

A pointer to the removed element, a canmsg_t instance, or NULL if the queue is empty.

Page updated: