Character device ring buffer structure.
More...
Detailed Description
Character device ring buffer structure.
Definition at line 140 of file usart.h.
Field Documentation
uint8_t* volatile RINGBUF::rbf_head |
Buffer head pointer.
Changed by the receiver interrupt.
Definition at line 146 of file usart.h.
uint8_t* volatile RINGBUF::rbf_tail |
Buffer tail pointer.
Changed by the transmitter interrupt.
Definition at line 152 of file usart.h.
First buffer address.
Definition at line 156 of file usart.h.
Last buffer address.
Definition at line 160 of file usart.h.
Total buffer size.
Zero, if no buffer available.
Definition at line 166 of file usart.h.
volatile size_t RINGBUF::rbf_cnt |
Number of bytes in the buffer.
Changed by receiver and transmitter interrupts.
Definition at line 172 of file usart.h.
Buffer low watermark.
If the number of bytes in the buffer reaches this value, then the previously disabled buffer input is enabled again.
Definition at line 179 of file usart.h.
Buffer high watermark.
If the number of bytes in the buffer reaches this value, then buffer input is disabled.
Definition at line 186 of file usart.h.
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.
Definition at line 193 of file usart.h.
The documentation for this struct was generated from the following file: