Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pts-base
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
misc
pts-base
Commits
ccfcfda4
Commit
ccfcfda4
authored
12 years ago
by
Matthieu Cattin
Browse files
Options
Downloads
Patches
Plain Diff
Modify si570 get raw config function.
- Returns all registers. - Two dimensions table [address, data]
parent
d4317f75
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/si57x.py
+20
-6
20 additions, 6 deletions
common/si57x.py
with
20 additions
and
6 deletions
common/si57x.py
+
20
−
6
View file @
ccfcfda4
...
...
@@ -33,6 +33,12 @@ class CSi57x:
R_RFREQ2
=
0x0A
R_RFREQ1
=
0x0B
R_RFREQ0
=
0x0C
R_HS_7PPM
=
0x0D
R_RFREQ4_7PPM
=
0x0E
R_RFREQ3_7PPM
=
0x0F
R_RFREQ2_7PPM
=
0x10
R_RFREQ1_7PPM
=
0x11
R_RFREQ0_7PPM
=
0x12
R_RFMC
=
0x87
R_FDCO
=
0x89
...
...
@@ -132,12 +138,20 @@ class CSi57x:
def
get_raw_config
(
self
):
config
=
[]
config
.
append
(
self
.
rd_reg
(
self
.
R_HS
))
config
.
append
(
self
.
rd_reg
(
self
.
R_RFREQ4
))
config
.
append
(
self
.
rd_reg
(
self
.
R_RFREQ3
))
config
.
append
(
self
.
rd_reg
(
self
.
R_RFREQ2
))
config
.
append
(
self
.
rd_reg
(
self
.
R_RFREQ1
))
config
.
append
(
self
.
rd_reg
(
self
.
R_RFREQ0
))
config
.
append
([
self
.
R_HS
,
self
.
rd_reg
(
self
.
R_HS
)])
config
.
append
([
self
.
R_RFREQ4
,
self
.
rd_reg
(
self
.
R_RFREQ4
)])
config
.
append
([
self
.
R_RFREQ3
,
self
.
rd_reg
(
self
.
R_RFREQ3
)])
config
.
append
([
self
.
R_RFREQ2
,
self
.
rd_reg
(
self
.
R_RFREQ2
)])
config
.
append
([
self
.
R_RFREQ1
,
self
.
rd_reg
(
self
.
R_RFREQ1
)])
config
.
append
([
self
.
R_RFREQ0
,
self
.
rd_reg
(
self
.
R_RFREQ0
)])
config
.
append
([
self
.
R_HS_7PPM
,
self
.
rd_reg
(
self
.
R_HS_7PPM
)])
config
.
append
([
self
.
R_RFREQ4_7PPM
,
self
.
rd_reg
(
self
.
R_RFREQ4_7PPM
)])
config
.
append
([
self
.
R_RFREQ3_7PPM
,
self
.
rd_reg
(
self
.
R_RFREQ3_7PPM
)])
config
.
append
([
self
.
R_RFREQ2_7PPM
,
self
.
rd_reg
(
self
.
R_RFREQ2_7PPM
)])
config
.
append
([
self
.
R_RFREQ1_7PPM
,
self
.
rd_reg
(
self
.
R_RFREQ1_7PPM
)])
config
.
append
([
self
.
R_RFREQ0_7PPM
,
self
.
rd_reg
(
self
.
R_RFREQ0_7PPM
)])
config
.
append
([
self
.
R_RFMC
,
self
.
rd_reg
(
self
.
R_RFMC
)])
config
.
append
([
self
.
R_FDCO
,
self
.
rd_reg
(
self
.
R_FDCO
)])
return
config
# For Si571 only !
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment