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
dfb5c64e
Commit
dfb5c64e
authored
Jul 23, 2021
by
Juan David Gonzalez Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spellings and spaces
parent
43530c41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
fsi.h
libfsi/fsi.h
+4
-2
libfsi.c
libfsi/libfsi.c
+5
-0
No files found.
libfsi/fsi.h
View file @
dfb5c64e
...
...
@@ -50,7 +50,7 @@ enum fsi_peak_type {
/* FIXME:should Bragg type be set apart? tbd */
};
enum
fsi_expert_mode
mode
{
enum
fsi_expert_mode
{
FSI_EXPERT_NONE
=
0
,
FSI_EXPERT_LIN_FFT
,
/**< buffer of linearized FFT data */
FSI_EXPERT_LIN_DATA
,
/**< does this mean linearized time-domain data? tbd */
...
...
@@ -68,6 +68,8 @@ enum fsi_expert_mode mode {
#define FSI_MAX_PEAKS 5
/* length of return peak data */
#define FSI_PEAK_LENGTH 200
/* size of sample vectors - this should not be hardcoded - tbd */
#define FSI_SAMPLE_SIZE 1024
/* library error codes */
#define __FSI_ERR_START 1024
...
...
@@ -105,7 +107,7 @@ struct fsi_channel_config {
double
channel_gain
;
/**< channel gain FIXME: see fsi_peak_request */
int
npeaks
;
/**< number of valid peaks to be requested in peaks array */
struct
fsi_peak_config
peaks
[
FSI_MAX_PEAKS
];
/**< peak requests
peaks
[
FSI_MAX_PEAKS
];
/**< peak requests
FIXME: should peak params be identical for all of them?
If so, this needs not be an array and npeaks is sufficient */
};
...
...
libfsi/libfsi.c
View file @
dfb5c64e
...
...
@@ -10,3 +10,8 @@ int fsi_channel_configure(struct fsi_channel_config *cfg)
{
return
fsi_channel_array_configure
(
cfg
,
1
);
}
int
fsi_receive_measurements
(
struct
fsi_channel_measurement
meas
[],
int
*
nchannels
)
{
return
fsi_receive_measurements_timemout
(
meas
,
nchannels
,
0
);
}
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