Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - 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
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
Beam Positoning Monitor - Software
Commits
d52b968b
Commit
d52b968b
authored
Feb 12, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ohal/sm_io/*/fmc130m_4ch/*: add new AD9510 "get" functions to export structure
parent
cf684ee2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
20 deletions
+49
-20
sm_io_fmc130m_4ch_exports.c
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_exports.c
+45
-18
sm_io_fmc130m_4ch_exports.h
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_exports.h
+4
-2
No files found.
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_exports.c
View file @
d52b968b
...
...
@@ -21,6 +21,19 @@ disp_op_t fmc130m_4ch_leds_exp = {
}
};
disp_op_t
fmc130m_4ch_si571_oe_exp
=
{
.
name
=
FMC130M_4CH_NAME_SI571_OE
,
.
opcode
=
FMC130M_4CH_OPCODE_SI571_OE
,
.
retval
=
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
.
retval_owner
=
DISP_OWNER_OTHER
,
.
args
=
{
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_END
}
};
disp_op_t
fmc130m_4ch_pll_func_exp
=
{
.
name
=
FMC130M_4CH_NAME_PLL_FUNCTION
,
.
opcode
=
FMC130M_4CH_OPCODE_PLL_FUNCTION
,
...
...
@@ -33,12 +46,26 @@ disp_op_t fmc130m_4ch_pll_func_exp = {
}
};
disp_op_t
fmc130m_4ch_
ad9510_cfg_default
s_exp
=
{
.
name
=
FMC130M_4CH_NAME_
AD9510_CFG_DEFAULT
S
,
.
opcode
=
FMC130M_4CH_OPCODE_
AD9510_CFG_DEFAULT
S
,
.
retval
=
DISP_ARG_EN
D
,
disp_op_t
fmc130m_4ch_
pll_statu
s_exp
=
{
.
name
=
FMC130M_4CH_NAME_
PLL_STATU
S
,
.
opcode
=
FMC130M_4CH_OPCODE_
PLL_STATU
S
,
.
retval
=
DISP_ARG_EN
CODE
(
DISP_ATYPE_UINT32
,
uint32_t
)
,
.
retval_owner
=
DISP_OWNER_OTHER
,
.
args
=
{
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_END
}
};
disp_op_t
fmc130m_4ch_clk_sel_exp
=
{
.
name
=
FMC130M_4CH_NAME_CLK_SEL
,
.
opcode
=
FMC130M_4CH_OPCODE_CLK_SEL
,
.
retval
=
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
.
retval_owner
=
DISP_OWNER_OTHER
,
.
args
=
{
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_END
}
};
...
...
@@ -296,18 +323,6 @@ disp_op_t fmc130m_4ch_test_data_en_exp = {
}
};
disp_op_t
fmc130m_4ch_si571_oe_exp
=
{
.
name
=
FMC130M_4CH_NAME_SI571_OE
,
.
opcode
=
FMC130M_4CH_OPCODE_SI571_OE
,
.
retval
=
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
.
retval_owner
=
DISP_OWNER_OTHER
,
.
args
=
{
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_ENCODE
(
DISP_ATYPE_UINT32
,
uint32_t
),
DISP_ARG_END
}
};
disp_op_t
fmc130m_4ch_trig_dir_exp
=
{
.
name
=
FMC130M_4CH_NAME_TRIG_DIR
,
.
opcode
=
FMC130M_4CH_OPCODE_TRIG_DIR
,
...
...
@@ -344,6 +359,16 @@ disp_op_t fmc130m_4ch_trig_val_exp = {
}
};
disp_op_t
fmc130m_4ch_ad9510_cfg_defaults_exp
=
{
.
name
=
FMC130M_4CH_NAME_AD9510_CFG_DEFAULTS
,
.
opcode
=
FMC130M_4CH_OPCODE_AD9510_CFG_DEFAULTS
,
.
retval
=
DISP_ARG_END
,
.
retval_owner
=
DISP_OWNER_OTHER
,
.
args
=
{
DISP_ARG_END
}
};
disp_op_t
fmc130m_4ch_ad9510_pll_a_div_exp
=
{
.
name
=
FMC130M_4CH_NAME_AD9510_PLL_A_DIV
,
.
opcode
=
FMC130M_4CH_OPCODE_AD9510_PLL_A_DIV
,
...
...
@@ -479,8 +504,10 @@ disp_op_t fmc130m_4ch_si571_get_defaults_exp = {
/* Exported function description */
const
disp_op_t
*
fmc130m_4ch_exp_ops
[]
=
{
&
fmc130m_4ch_leds_exp
,
&
fmc130m_4ch_si571_oe_exp
,
&
fmc130m_4ch_pll_func_exp
,
&
fmc130m_4ch_ad9510_cfg_defaults_exp
,
&
fmc130m_4ch_pll_status_exp
,
&
fmc130m_4ch_clk_sel_exp
,
&
fmc130m_4ch_adc_data0_exp
,
&
fmc130m_4ch_adc_data1_exp
,
&
fmc130m_4ch_adc_data2_exp
,
...
...
@@ -502,10 +529,10 @@ const disp_op_t *fmc130m_4ch_exp_ops [] = {
&
fmc130m_4ch_adc_dly2_exp
,
&
fmc130m_4ch_adc_dly3_exp
,
&
fmc130m_4ch_test_data_en_exp
,
&
fmc130m_4ch_si571_oe_exp
,
&
fmc130m_4ch_trig_dir_exp
,
&
fmc130m_4ch_trig_term_exp
,
&
fmc130m_4ch_trig_val_exp
,
&
fmc130m_4ch_ad9510_cfg_defaults_exp
,
&
fmc130m_4ch_ad9510_pll_a_div_exp
,
&
fmc130m_4ch_ad9510_pll_b_div_exp
,
&
fmc130m_4ch_ad9510_pll_prescaler_exp
,
...
...
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_exports.h
View file @
d52b968b
...
...
@@ -11,8 +11,10 @@
#include "dispatch_table.h"
extern
disp_op_t
fmc130m_4ch_leds_exp
;
extern
disp_op_t
fmc130m_4ch_si571_oe_exp
;
extern
disp_op_t
fmc130m_4ch_pll_func_exp
;
extern
disp_op_t
fmc130m_4ch_ad9510_cfg_defaults_exp
;
extern
disp_op_t
fmc130m_4ch_pll_status_exp
;
extern
disp_op_t
fmc130m_4ch_clk_sel_exp
;
extern
disp_op_t
fmc130m_4ch_adc_data0_exp
;
extern
disp_op_t
fmc130m_4ch_adc_data1_exp
;
extern
disp_op_t
fmc130m_4ch_adc_data2_exp
;
...
...
@@ -34,10 +36,10 @@ extern disp_op_t fmc130m_4ch_adc_dly1_exp;
extern
disp_op_t
fmc130m_4ch_adc_dly2_exp
;
extern
disp_op_t
fmc130m_4ch_adc_dly3_exp
;
extern
disp_op_t
fmc130m_4ch_test_data_en_exp
;
extern
disp_op_t
fmc130m_4ch_si571_oe_exp
;
extern
disp_op_t
fmc130m_4ch_trig_dir_exp
;
extern
disp_op_t
fmc130m_4ch_trig_term_exp
;
extern
disp_op_t
fmc130m_4ch_trig_val_exp
;
extern
disp_op_t
fmc130m_4ch_ad9510_cfg_defaults_exp
;
extern
disp_op_t
fmc130m_4ch_ad9510_pll_a_div_exp
;
extern
disp_op_t
fmc130m_4ch_ad9510_pll_b_div_exp
;
extern
disp_op_t
fmc130m_4ch_ad9510_pll_prescaler_exp
;
...
...
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