/* See if a message has bee received by a FIFO. */
int32_t can_ctrl_is_fifo_rdy(struct can_ctrl_dev *dev, uint8_t fifo_nr, bool *status)
/* See if a message has bee received by a FIFO. */
int32_t can_ctrl_is_fifo_rdy(struct can_ctrl_dev *dev, uint8_t fifo_nr, bool *status)
{
	int32_t ret;
	uint32_t temp;
	ret = can_ctrl_sfr_word_read(dev, CAN_CTRL_REG_FIFOSTA(fifo_nr), &temp);
	if(ret != 0)
		return ret;
	if(FIFOSTA_TFNRFNIF_MASK & temp)
		*status = true;
	else
		*status = false;
	return ret;
}