/* Check if FIFO is full. 
As this function only reads the read and write pointers once, this function is reentrant and thus thread and ISR save without any mutexes. */
bool tu_fifo_full(tu_fifo_t *f)
/* Check if FIFO is full. 
As this function only reads the read and write pointers once, this function is reentrant and thus thread and ISR save without any mutexes. */
bool tu_fifo_full(tu_fifo_t *f)
{
  return _ff_count(f->depth, f->wr_idx, f->rd_idx) >= f->depth;
}