Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
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
linux-elphel
Commits
6b7beb2a
Commit
6b7beb2a
authored
Feb 09, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filled table for pages
parent
71913108
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1952 additions
and
6 deletions
+1952
-6
mt9f002.c
src/drivers/elphel/mt9f002.c
+1933
-0
mt9f002.h
src/drivers/elphel/mt9f002.h
+19
-6
No files found.
src/drivers/elphel/mt9f002.c
0 → 100644
View file @
6b7beb2a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/drivers/elphel/mt9f002.h
View file @
6b7beb2a
...
@@ -521,6 +521,13 @@
...
@@ -521,6 +521,13 @@
#define P_REG_MT9F002_DAC_LD_FBIAS 0x3EF8
#define P_REG_MT9F002_DAC_LD_FBIAS 0x3EF8
/**
* SENSOR_REGSxx
*/
#define P_MT9F002_MODEL_ID 0
#define P_MT9F002_RESET 1
//#define P_REG(x) x
//#define P_REG(x) x
//#define P_MT9F002_MODEL_ID 4
//#define P_MT9F002_MODEL_ID 4
...
@@ -529,6 +536,18 @@
...
@@ -529,6 +536,18 @@
//#define P_REG_HADDR(x) pi2a[2*(x)+1]>>8 & 0xff
//#define P_REG_HADDR(x) pi2a[2*(x)+1]>>8 & 0xff
//#define P_REG_LADDR(x) pi2a[2*(x)+1] & 0xff
//#define P_REG_LADDR(x) pi2a[2*(x)+1] & 0xff
/**
LUT to map SENSOR_REGSxxx to internal sensor register addresses
* needed for any sensor
* For better manual mapping:
- even elements are SENSOR_REGSxxx,
- odd elements are sensor's register addresses.
* has to be at least 16-bit/entry for 16 bit addresses
* (for MT9X001 it's a 1-to-1 mapping)
*/
extern
const
unsigned
short
mt9f002_par2addr
[];
extern
const
unsigned
short
mt9f002_pages
[];
/** Detect one of Micron/Aptina/On Semiconductor sensors MT9M*, MT9D*,MT9T*, andMT9P* with parallel interface */
/** Detect one of Micron/Aptina/On Semiconductor sensors MT9M*, MT9D*,MT9T*, andMT9P* with parallel interface */
int
mt9f002_pgm_detectsensor
(
int
sensor_port
,
///< sensor port number (0..3)
int
mt9f002_pgm_detectsensor
(
int
sensor_port
,
///< sensor port number (0..3)
struct
sensor_t
*
sensor
,
///< sensor static parameters (capabilities)
struct
sensor_t
*
sensor
,
///< sensor static parameters (capabilities)
...
@@ -539,9 +558,3 @@ int mt9f002_pgm_detectsensor (int sensor_port, ///< sensor port
...
@@ -539,9 +558,3 @@ int mt9f002_pgm_detectsensor (int sensor_port, ///< sensor port
///< @return 0 - OK, negative - error
///< @return 0 - OK, negative - error
;
;
void
mt9f002_set_device
(
struct
device
*
dev
);
void
mt9f002_set_device
(
struct
device
*
dev
);
#if 0
int adjustBinning_mt9x001(void);
int program_woi_mt9x001(int nonstop);
int program_gains_mt9x001(void);
int program_exposure_mt9x001(void);
#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