Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FSI Data Acquisition Path Gateware and Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
FSI Data Acquisition Path Gateware and Software
Commits
47b00cc9
Commit
47b00cc9
authored
Jul 23, 2021
by
Juan David Gonzalez Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add special provision for hardware diagnostics
parent
11fc6f94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
fsi.h
libfsi/fsi.h
+12
-0
No files found.
libfsi/fsi.h
View file @
47b00cc9
...
...
@@ -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 */
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment