/* Get remaining space in FIFO. 
As this function only reads the read and write pointers once, this function is reentrant and thus thread and ISR save without any mutexes. */
uint16_t tu_fifo_remaining(tu_fifo_t *f)
/* Get remaining space in FIFO. 
As this function only reads the read and write pointers once, this function is reentrant and thus thread and ISR save without any mutexes. */
uint16_t tu_fifo_remaining(tu_fifo_t *f)
{
  return _ff_remaining(f->depth, f->wr_idx, f->rd_idx);
}