add special provision for hardware diagnostics

parent 11fc6f94
......@@ -72,6 +72,8 @@ enum fsi_expert_mode {
#define FSI_PEAK_LENGTH 200
/** size of sample vectors - this should not be hardcoded - tbd */
#define FSI_SAMPLE_SIZE 1024
/** amount of reserved bytes for hardware diagnostics */
#define FSI_HW_DIAG_SIZE 16
/* library error codes */
#define __FSI_ERR_START 1024
......@@ -121,6 +123,15 @@ struct fsi_channel_config {
If so, this needs not be an array and npeaks is sufficient */
};
/**
* ADC/photodetector module HW diagnostics - tbd
*/
struct fsi_hw_status {
union {
uint8_t diag[FSI_HW_DIAG_SIZE];
};
};
/**
* channel measurement results - the result of acq data processing for
* an individual channel is returned here, with npeaks (up to
......@@ -131,6 +142,7 @@ struct fsi_channel_measurement {
unsigned int channel_id; /**< channel id of this measurement */
enum fsi_channel_type type; /**< type of channel (distance/Bragg) */
int npeaks; /**< number of valid entries in peaks array */
struct fsi_hw_status hw_status; /**< hardware error status */
struct fsi_peak_result peaks[FSI_MAX_PEAKS]; /**< peak measured values */
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment