#include <dev/usart.h>
Detailed Description
Character device ring buffer structure.
Field Documentation
|
|
Number of bytes in the buffer.
Changed by receiver and transmitter interrupts. |
|
|
Buffer head pointer.
Changed by the receiver interrupt. |
|
|
Buffer high watermark.
If the number of bytes in the buffer reaches this value, then buffer input is disabled. |
|
|
Buffer low watermark.
If the number of bytes in the buffer reaches this value, then the previously disabled buffer input is enabled again. |
|
|
Queue of waiting threads.
Consuming threads are added to this queue when the buffer is empty. Producing threads are added to this queue when the buffer is full. |
|
|
Total buffer size.
Zero, if no buffer available. |
|
|
Buffer tail pointer.
Changed by the transmitter interrupt. |