Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
69bf1c5b
Commit
69bf1c5b
authored
Aug 13, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! drv: add sysfs attributes to set trigger time
parent
3835380c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
fa-zio-trg.c
kernel/fa-zio-trg.c
+13
-14
fmc-adc-100m14b4cha.h
kernel/fmc-adc-100m14b4cha.h
+3
-0
No files found.
kernel/fa-zio-trg.c
View file @
69bf1c5b
...
...
@@ -77,6 +77,19 @@ static struct zio_attribute zfat_ext_zattr[] = {
[
FA100M14B4C_TATTR_CH4_DLY
]
=
ZIO_ATTR_EXT
(
"ch3-delay"
,
ZIO_RW_PERM
,
ZFA_CH4_DLY
,
0
),
/* Time Trigger */
[
FA100M14B4C_TATTR_TRG_TIM_SU
]
=
ZIO_ATTR_EXT
(
"trg-time-su"
,
ZIO_RW_PERM
,
ZFA_UTC_TRIG_TIME_SECONDS_U
,
0
),
[
FA100M14B4C_TATTR_TRG_TIM_SL
]
=
ZIO_ATTR_EXT
(
"trg-time-sl"
,
ZIO_RW_PERM
,
ZFA_UTC_TRIG_TIME_SECONDS_L
,
0
),
[
FA100M14B4C_TATTR_TRG_TIM_C
]
=
ZIO_ATTR_EXT
(
"trg-time-t"
,
ZIO_RW_PERM
,
ZFA_UTC_TRIG_TIME_COARSE
,
0
),
/*
* Delay to apply on the trigger in sampling clock period. The default
...
...
@@ -89,20 +102,6 @@ static struct zio_attribute zfat_ext_zattr[] = {
[
FA100M14B4C_TATTR_SW_FIRE
]
=
ZIO_PARAM_EXT
(
"sw-trg-fire"
,
ZIO_WO_PERM
,
ZFAT_SW
,
0
),
/* Time Trigger */
[
FA100M14B4C_TATTR_TRG_TIM_SU
]
=
ZIO_PARAM_EXT
(
"trg-time-su"
,
ZIO_RW_PERM
,
ZFA_UTC_TRIG_TIME_SECONDS_U
,
0
),
[
FA100M14B4C_TATTR_TRG_TIM_SL
]
=
ZIO_PARAM_EXT
(
"trg-time-sl"
,
ZIO_RW_PERM
,
ZFA_UTC_TRIG_TIME_SECONDS_L
,
0
),
[
FA100M14B4C_TATTR_TRG_TIM_C
]
=
ZIO_PARAM_EXT
(
"trg-time-t"
,
ZIO_RW_PERM
,
ZFA_UTC_TRIG_TIME_COARSE
,
0
),
/* last trigger time stamp */
[
FA100M14B4C_TATTR_TRG_SU
]
=
ZIO_PARAM_EXT
(
"tstamp-trg-lst-su"
,
ZIO_RO_PERM
,
...
...
kernel/fmc-adc-100m14b4cha.h
View file @
69bf1c5b
...
...
@@ -69,6 +69,9 @@ enum fa100m14b4c_trg_ext_attr {
FA100M14B4C_TATTR_CH2_DLY
,
FA100M14B4C_TATTR_CH3_DLY
,
FA100M14B4C_TATTR_CH4_DLY
,
FA100M14B4C_TATTR_TRG_TIM_SU
,
FA100M14B4C_TATTR_TRG_TIM_SL
,
FA100M14B4C_TATTR_TRG_TIM_C
,
#ifdef __KERNEL__
FA100M14B4C_TATTR_SW_FIRE
,
...
...
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