Commit 6b7beb2a authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

filled table for pages

parent 71913108
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment