ACQ400_XRM (xrmIoc)
Loading...
Searching...
No Matches
SamplePrams.h
Go to the documentation of this file.
1/** @file SamplePrams.h
2 * @brief defines SamplePrams, sample geometry definition struct.
3 *
4 * Created on: 9 Apr 2026
5 * Author: pgm
6 */
7
8#ifndef XRMIOCAPP_SRC_SAMPLEPRAMS_H_
9#define XRMIOCAPP_SRC_SAMPLEPRAMS_H_
10
11struct SamplePrams {
12 int MAGIC; /**< set when valid */
13 int SSB; /**< Sample Size Bytes */
14 int NSAM; /**< Number of Samples in Burst */
15 int AI_COUNT; /**< Number of AI16 channels */
16 int AI_INDEX; /**< Index of first AI16 */
17 int DI_COUNT; /**< Number of DI32 channels */
18 int DI_INDEX; /**< Index of first DI32 */
19 int SP_COUNT; /**< Number of SP32 channels */
20 int SP_INDEX; /**< Index of first SP32 channel*/
21 SamplePrams();
22 bool isValid() const; /**< structure is valid */
23 void validate(); /**< validate the structure */
24
25 static int store(const SamplePrams& samplePrams); /**< store to file */
26 static int load(SamplePrams& samplePrams); /**< load from file */
27};
28
29const SamplePrams* get_acq400_SamplePrams();
30
31
32
33#endif /* XRMIOCAPP_SRC_SAMPLEPRAMS_H_ */
Definition SamplePrams.h:11
int NSAM
Definition SamplePrams.h:14
int AI_COUNT
Definition SamplePrams.h:15
int SP_INDEX
Definition SamplePrams.h:20
int SSB
Definition SamplePrams.h:13
static int load(SamplePrams &samplePrams)
Definition SamplePrams.cpp:52
int DI_INDEX
Definition SamplePrams.h:18
int DI_COUNT
Definition SamplePrams.h:17
int SP_COUNT
Definition SamplePrams.h:19
void validate()
Definition SamplePrams.cpp:23
static int store(const SamplePrams &samplePrams)
Definition SamplePrams.cpp:36
int AI_INDEX
Definition SamplePrams.h:16
int MAGIC
Definition SamplePrams.h:12
bool isValid() const
Definition SamplePrams.cpp:32