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
34742155
Commit
34742155
authored
Oct 12, 2021
by
Juan David Gonzalez Cobas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fsi-lib-data-sizes' into fsi-lib-devel
parents
69cb5c3d
62f796b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
Makefile
libfsi/Makefile
+4
-0
sizes.c
libfsi/sizes.c
+22
-0
No files found.
libfsi/Makefile
View file @
34742155
...
...
@@ -9,6 +9,10 @@ lib: libfsi.a
libfsi.a
:
$(LIBOBJS) fsi.h
$(AR)
$(ARFLAGS)
$@
$^
sizes
:
sizes.o lib
$(CC)
$(CFLAGS)
-o
$@
sizes.o libfsi.a
$(LDFLAGS)
$(LDLIBS)
sizes.o
:
fsi.h
doc
:
doc/html
doc/html
:
$(DOXYFILE)
doxygen
$(DOXYFILE)
...
...
libfsi/sizes.c
0 → 100644
View file @
34742155
#include <stdio.h>
#include "fsi.h"
#define NCHANNELS 1024
int
main
(
int
argc
,
char
*
argv
[])
{
int
scc
=
sizeof
(
struct
fsi_channel_config
);
int
gcc
=
sizeof
(
struct
fsi_channel_config
)
+
sizeof
(
unsigned
);
int
mcc
=
NCHANNELS
*
scc
;
int
cms
=
sizeof
(
struct
fsi_channel_measurement
);
int
tms
=
NCHANNELS
*
cms
;
int
fms
=
sizeof
(
struct
fsi_full_measurement
);
const
char
fmt
[]
=
"%-30s: %10d %s
\n
"
;
printf
(
fmt
,
"channel config set"
,
scc
,
"bytes/channel"
);
printf
(
fmt
,
"channel config get"
,
gcc
,
"bytes/channel"
);
printf
(
fmt
,
"bulk channel config"
,
mcc
,
"total bytes maximum"
);
printf
(
fmt
,
"channel get measurement"
,
cms
,
"bytes/channel"
);
printf
(
fmt
,
"bulk get measurements"
,
tms
,
"total bytes max/cycle"
);
printf
(
fmt
,
"get full (raw) measurement"
,
fms
,
"bytes (single channel)"
);
}
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