|
logic-analyzer
|
Data is captured in a ring buffer. If the buffer is full we overwrite the oldest entries.... More...
#include <logic_analyzer.h>
Public Member Functions | |
| RingBuffer (size_t size) | |
| void | write (PinBitArray value) |
| adds an entry - if there is no more space we overwrite the oldest value | |
| PinBitArray | read () |
| reads the next available entry from the buffer | |
| size_t | readBuffer (uint32_t *result, size_t read_len) |
| 1 SUMP record has 4 bytes - We privide the requested number of buffered values in the output format | |
| void | clear () |
| clears all entries | |
| void | clear (size_t count) |
| clears n entries from the buffer - if the number is bigger then the available data we ignore some future data | |
| size_t | available () |
| returns the number of available entries | |
| void | setAvailable (size_t avail) |
| Usualy you must not use this function. However for the RP PIO it is quite usefull to indicated that the buffer has been filled. | |
| size_t | size () |
| returns the max buffer size | |
| PinBitArray * | data_ptr () |
Data is captured in a ring buffer. If the buffer is full we overwrite the oldest entries....