SciSDK Library
SDK for SciCompiler projects
|
Oscilloscope decoded data type. More...
#include <scisdk_defines.h>
Public Attributes | |
uint32_t | magic |
int32_t * | analog |
uint8_t * | digital |
uint32_t | trigger_position |
uint64_t | timecode |
struct { | |
uint32_t samples_analog | |
uint32_t samples_digital | |
uint32_t tracks_analog_per_channel | |
uint32_t tracks_digital_per_channel | |
uint32_t channels | |
} | info |
Oscilloscope decoded data type.
This type is used to store decoded data from oscilloscope. The data in this structure is already decoded. The first sample in the analog/digital buffer rappresent the first sample of the channel 1
Example with 3 channels, 1024 samples per channel, pretrigger T Samples between 0 and T-1 are pre-trigger samples Samples between T and 1023 are post-trigger samples
Channel 1 | Channel 2 | Channel 3 |
---|---|---|
0 ... T ............... 1024 | 0 ... T ............... 1024 | 0 ... T ............... 1024 |
int32_t* SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::analog |
Pointer to analog data allocated by the AllocateBuffer function
uint32_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::channels |
Number of channels
uint8_t* SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::digital |
Pointer to digital data allocated by the AllocateBuffer function
struct { ... } SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::info |
uint32_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::magic |
Magic number to identify the data type
uint32_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::samples_analog |
Number of samples in analog buffer
uint32_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::samples_digital |
Number of samples in digital buffer
uint64_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::timecode |
Timecode of the first sample. Taken by timecome input in SciCompiler firmware
uint32_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::tracks_analog_per_channel |
Number of analog tracks per channel
uint32_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::tracks_digital_per_channel |
Number of digital tracks per channel
uint32_t SCISDK_OSCILLOSCOPE_DUAL_DECODED_BUFFER::trigger_position |
Trigger position in samples