#include <queue.h>
| Public Member Functions | |
| Queue () | |
| uint8_t | read (uint32_t *x) | 
| uint8_t | write (uint32_t x) | 
| Private Member Functions | |
| int | size (void) | 
| int | empty (void) | 
| int | full (void) | 
| Private Attributes | |
| int | wpointer | 
| int | rpointer | 
| uint32_t | buffer [BUFSIZE] | 
A queue containing unsigned 32-bit samples. WARNING: This class provides NO protection against interrupts. That must be done by the user:
Internal implementation is a fixed-size circular buffer.
| 
 | inlineprivate | 
| 
 | inlineprivate | 
| 
 | inline | 
Read a sample from the queue.
| x | a pointer to the variable to store the sample in | 
Definition at line 50 of file queue.h.
Referenced by main(), and timer_interrupt().


| 
 | inlineprivate | 
| 
 | inline | 
Write a sample to the queue.
| x | the sample to be written | 
Definition at line 61 of file queue.h.
Referenced by compute_sample().


 1.8.8
 1.8.8