View of one HSD channel: the constructor finds the raw (stream id 0) and fex (stream id 1) stream headers, waveform() returns the raw samples in place, and next_peak() iterates over the fex peaks.
More...
#include <HsdPython.hh>
|
| | ChannelPython () |
| | Default constructor; all members are left uninitialized.
|
| |
| | ChannelPython (uint32_t *evtheader, uint8_t *data) |
| | Reset the peak iterator and record the stream headers found at data for the streams flagged in bits 21:20 of evtheader[0]; each stream header is followed by num_samples() 16-bit words.
|
| |
| | ~ChannelPython () |
| | Destructor; does nothing.
|
| |
| uint16_t * | waveform (unsigned &numsamples) |
| | Return a pointer to the raw stream's samples in the input buffer and set numsamples, or return 0 (numsamples unchanged) if there is no raw stream.
|
| |
| unsigned | next_peak (unsigned &startPos, uint16_t **peakPtr) |
| | Return the length of the next fex peak and set startPos (skipped samples plus the widths of earlier peaks) and *peakPtr (its first sample in the input buffer); returns 0 when no peak is left or there is no fex stream.
|
| |
| unsigned char | fex_out_of_range () |
| | Return the out_of_range() bit of the fex stream header, or 0 if there is no fex stream.
|
| |
View of one HSD channel: the constructor finds the raw (stream id 0) and fex (stream id 1) stream headers, waveform() returns the raw samples in place, and next_peak() iterates over the fex peaks.
Nothing is copied. The header comment refers to Hsd.hh for the data layout.
◆ ChannelPython() [1/2]
| Pds::HSD::ChannelPython::ChannelPython |
( |
| ) |
|
|
inline |
Default constructor; all members are left uninitialized.
◆ ChannelPython() [2/2]
| Pds::HSD::ChannelPython::ChannelPython |
( |
uint32_t * |
evtheader, |
|
|
uint8_t * |
data |
|
) |
| |
|
inline |
Reset the peak iterator and record the stream headers found at data for the streams flagged in bits 21:20 of evtheader[0]; each stream header is followed by num_samples() 16-bit words.
◆ ~ChannelPython()
| Pds::HSD::ChannelPython::~ChannelPython |
( |
| ) |
|
|
inline |
Destructor; does nothing.
◆ fex_out_of_range()
| unsigned char Pds::HSD::ChannelPython::fex_out_of_range |
( |
| ) |
|
|
inline |
Return the out_of_range() bit of the fex stream header, or 0 if there is no fex stream.
◆ next_peak()
| unsigned Pds::HSD::ChannelPython::next_peak |
( |
unsigned & |
startPos, |
|
|
uint16_t ** |
peakPtr |
|
) |
| |
|
inline |
Return the length of the next fex peak and set startPos (skipped samples plus the widths of earlier peaks) and *peakPtr (its first sample in the input buffer); returns 0 when no peak is left or there is no fex stream.
Groups of four words whose first word has bit 15 set are skips that add their low 15 bits to the position.
◆ waveform()
| uint16_t * Pds::HSD::ChannelPython::waveform |
( |
unsigned & |
numsamples | ) |
|
|
inline |
Return a pointer to the raw stream's samples in the input buffer and set numsamples, or return 0 (numsamples unchanged) if there is no raw stream.
The documentation for this class was generated from the following file: