logic-analyzer
Public Member Functions | List of all members
logic_analyzer::RingBuffer Class Reference

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 ()
 

Detailed Description

Data is captured in a ring buffer. If the buffer is full we overwrite the oldest entries....

Author
Phil Schatzmann

The documentation for this class was generated from the following file: