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
3e6d7815
Commit
3e6d7815
authored
Feb 12, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/sm_io/chips/*_ad9510.c: add "get" functions
parent
5fc880a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
204 additions
and
41 deletions
+204
-41
sm_ch_ad9510.c
hal/sm_io/chips/sm_ch_ad9510.c
+179
-32
sm_ch_ad9510.h
hal/sm_io/chips/sm_ch_ad9510.h
+25
-9
No files found.
hal/sm_io/chips/sm_ch_ad9510.c
View file @
3e6d7815
This diff is collapsed.
Click to expand it.
hal/sm_io/chips/sm_ch_ad9510.h
View file @
3e6d7815
...
...
@@ -49,17 +49,33 @@ smch_err_e smch_ad9510_reg_update (smch_ad9510_t *self);
smch_err_e
smch_ad9510_cfg_defaults
(
smch_ad9510_t
*
self
);
/* AD9510 PLL divider functions */
smch_err_e
smch_ad9510_pll_a_div
(
smch_ad9510_t
*
self
,
uint32_t
div
);
smch_err_e
smch_ad9510_pll_b_div
(
smch_ad9510_t
*
self
,
uint32_t
div
);
smch_err_e
smch_ad9510_pll_prescaler
(
smch_ad9510_t
*
self
,
uint32_t
pre
);
smch_err_e
smch_ad9510_r_div
(
smch_ad9510_t
*
self
,
uint32_t
div
);
smch_err_e
smch_ad9510_set_pll_a_div
(
smch_ad9510_t
*
self
,
uint32_t
*
div
);
smch_err_e
smch_ad9510_get_pll_a_div
(
smch_ad9510_t
*
self
,
uint32_t
*
div
);
smch_err_e
smch_ad9510_set_pll_b_div
(
smch_ad9510_t
*
self
,
uint32_t
*
div
);
smch_err_e
smch_ad9510_get_pll_b_div
(
smch_ad9510_t
*
self
,
uint32_t
*
div
);
smch_err_e
smch_ad9510_set_pll_prescaler
(
smch_ad9510_t
*
self
,
uint32_t
*
pre
);
smch_err_e
smch_ad9510_get_pll_prescaler
(
smch_ad9510_t
*
self
,
uint32_t
*
pre
);
smch_err_e
smch_ad9510_set_r_div
(
smch_ad9510_t
*
self
,
uint32_t
*
div
);
smch_err_e
smch_ad9510_get_r_div
(
smch_ad9510_t
*
self
,
uint32_t
*
div
);
/* AD9510 PLL control functions */
smch_err_e
smch_ad9510_pll_pdown
(
smch_ad9510_t
*
self
,
uint32_t
pdown
);
smch_err_e
smch_ad9510_mux_status
(
smch_ad9510_t
*
self
,
uint32_t
mux
);
smch_err_e
smch_ad9510_cp_current
(
smch_ad9510_t
*
self
,
uint32_t
cp_current
);
smch_err_e
smch_ad9510_outputs
(
smch_ad9510_t
*
self
,
uint32_t
out_en
);
smch_err_e
smch_ad9510_pll_clk_sel
(
smch_ad9510_t
*
self
,
uint32_t
clk_num
);
smch_err_e
smch_ad9510_set_pll_pdown
(
smch_ad9510_t
*
self
,
uint32_t
*
pdown
);
smch_err_e
smch_ad9510_get_pll_pdown
(
smch_ad9510_t
*
self
,
uint32_t
*
pdown
);
smch_err_e
smch_ad9510_set_mux_status
(
smch_ad9510_t
*
self
,
uint32_t
*
mux
);
smch_err_e
smch_ad9510_get_mux_status
(
smch_ad9510_t
*
self
,
uint32_t
*
mux
);
smch_err_e
smch_ad9510_set_cp_current
(
smch_ad9510_t
*
self
,
uint32_t
*
cp_current
);
smch_err_e
smch_ad9510_get_cp_current
(
smch_ad9510_t
*
self
,
uint32_t
*
cp_current
);
smch_err_e
smch_ad9510_set_outputs
(
smch_ad9510_t
*
self
,
uint32_t
*
out_en
);
smch_err_e
smch_ad9510_get_outputs
(
smch_ad9510_t
*
self
,
uint32_t
*
out_en
);
smch_err_e
smch_ad9510_set_pll_clk_sel
(
smch_ad9510_t
*
self
,
uint32_t
*
clk_num
);
smch_err_e
smch_ad9510_get_pll_clk_sel
(
smch_ad9510_t
*
self
,
uint32_t
*
clk_num
);
#endif
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