Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
465135b4
Commit
465135b4
authored
Apr 29, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re=-arranged i2c pages for lepton sensor
parent
5e1584e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
x393_sens_cmprs.py
py393/x393_sens_cmprs.py
+12
-4
No files found.
py393/x393_sens_cmprs.py
View file @
465135b4
...
@@ -1820,12 +1820,20 @@ class X393SensCmprs(object):
...
@@ -1820,12 +1820,20 @@ class X393SensCmprs(object):
elif
sensorType
==
x393_sensor
.
SENSOR_INTERFACE_VOSPI
:
elif
sensorType
==
x393_sensor
.
SENSOR_INTERFACE_VOSPI
:
#slave address 0x2a(of 0x7f)
#slave address 0x2a(of 0x7f)
#address - 16bit, data 16 bits
#address - 16bit, data 16 bits
for
page
in
(
0
,
# Most of the commands
self
.
x393Sensor
.
set_sensor_i2c_table_reg_wr
(
0xf8
,
0xf9
,
0xfa
,
0xfb
,
# Block DATA Buffer 0 (page 10 of FLIR LEPTON(R) Software IDD)
num_sensor
=
num_sensor
,
page
=
0
,
# page0 - directly, Most of the commands
slave_addr
=
slave_addr
,
rah
=
0
,
num_bytes
=
4
,
bit_delay
=
i2c_delay
,
verbose
=
verbose
)
for
page
in
(
0xf8
,
0xf9
,
0xfa
,
0xfb
,
# Block DATA Buffer 0 (page 10 of FLIR LEPTON(R) Software IDD)
0xfc
,
0xfd
,
0xfe
,
0xff
):
# Block DATA Buffer 1 (page 10 of FLIR LEPTON(R) Software IDD)
0xfc
,
0xfd
,
0xfe
,
0xff
):
# Block DATA Buffer 1 (page 10 of FLIR LEPTON(R) Software IDD)
# will register to pages 0x01 ... 0x08
self
.
x393Sensor
.
set_sensor_i2c_table_reg_wr
(
self
.
x393Sensor
.
set_sensor_i2c_table_reg_wr
(
num_sensor
=
num_sensor
,
num_sensor
=
num_sensor
,
page
=
page
,
page
=
page
-
0xf7
,
slave_addr
=
slave_addr
,
slave_addr
=
slave_addr
,
rah
=
page
,
rah
=
page
,
num_bytes
=
4
,
num_bytes
=
4
,
...
@@ -1834,7 +1842,7 @@ class X393SensCmprs(object):
...
@@ -1834,7 +1842,7 @@ class X393SensCmprs(object):
self
.
x393Sensor
.
set_sensor_i2c_table_reg_rd
(
# last page used for read
self
.
x393Sensor
.
set_sensor_i2c_table_reg_rd
(
# last page used for read
num_sensor
=
num_sensor
,
num_sensor
=
num_sensor
,
page
=
0x
01
,
page
=
0x
ff
,
two_byte_addr
=
1
,
two_byte_addr
=
1
,
num_bytes_rd
=
2
,
num_bytes_rd
=
2
,
bit_delay
=
i2c_delay
,
bit_delay
=
i2c_delay
,
...
...
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