canque_fifo_get_inslot

Name

canque_fifo_get_inslot --  allocate slot for the input of one CAN message

Synopsis

int canque_fifo_get_inslot (struct canque_fifo_t * fifo, struct canque_slot_t ** slotp, int cmd);

Arguments

fifo

pointer to the FIFO structure

slotp

pointer to location to store pointer to the allocated slot.

cmd

optional command associated with allocated slot.

Return Value

The function returns negative value if there is no free slot in the FIFO queue.