25 #ifndef CHANNEL_REMOTEDATAREADQUEUE_H_ 26 #define CHANNEL_REMOTEDATAREADQUEUE_H_ 43 void readSample(
Sample& s,
bool scaleForTx =
false);
66 if ((
sizeof(
Sample) == 4) && (sampleSize == 8))
75 else if ((
sizeof(
Sample) == 8) && (sampleSize == 4))
84 else if ((sampleSize == 4) || (sampleSize == 8))
uint32_t size() const
Returns queue size (max length)
RemoteSuperBlock * m_superBlocks
uint32_t m_sampleCount
use a counter capped below 2^31 as it is going to be converted to an int in the web interface ...
RemoteProtectedBlock m_protectedBlock
uint32_t readSampleCount() const
Returns the absolute number of samples read.
bool m_full
full condition was hit
uint8_t buf[RemoteNbBytesPerBlock]
uint32_t length() const
Returns queue length.
RemoteDataBlock * m_dataBlock
void convertDataToSample(Sample &s, uint32_t blockIndex, uint32_t sampleIndex, bool scaleForTx)
QQueue< RemoteDataBlock * > m_dataReadQueue
static const uint32_t MinimumMaxSize