Beispiel #1
0
// Returns the number of bytes currently available in the *fifo
int fifo_byte_available(struct instance_fifo *fifo) {
  return fifo->fifo_size - 1 - fifo_byte_length(fifo);
}
// Returns the number of bytes currently available in the fifo
int fifo_byte_available() {
    return FIFO_SIZE - 1 - fifo_byte_length();
}