TI J721E Imaging User Guide
iss_sensors.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2020 Texas Instruments Incorporated
4  *
5  * All rights reserved not granted herein.
6  *
7  * Limited License.
8  *
9  * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10  * license under copyrights and patents it now or hereafter owns or controls to make,
11  * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12  * terms herein. With respect to the foregoing patent license, such license is granted
13  * solely to the extent that any such patent is necessary to Utilize the software alone.
14  * The patent license shall not apply to any combinations which include this software,
15  * other than combinations with devices manufactured by or for TI ("TI Devices").
16  * No hardware patent is licensed hereunder.
17  *
18  * Redistributions must preserve existing copyright notices and reproduce this license
19  * (including the above copyright notice and the disclaimer and (if applicable) source
20  * code license limitations below) in the documentation and/or other materials provided
21  * with the distribution
22  *
23  * Redistribution and use in binary form, without modification, are permitted provided
24  * that the following conditions are met:
25  *
26  * * No reverse engineering, decompilation, or disassembly of this software is
27  * permitted with respect to any software provided in binary form.
28  *
29  * * any redistribution and use are licensed by TI for use only with TI Devices.
30  *
31  * * Nothing shall obligate TI to provide you with source code for the software
32  * licensed and provided to you in object code.
33  *
34  * If software source code is provided to you, modification and redistribution of the
35  * source code are permitted provided that the following conditions are met:
36  *
37  * * any redistribution and use of the source code, including any resulting derivative
38  * works, are licensed by TI for use only with TI Devices.
39  *
40  * * any redistribution and use of any object code compiled from the source code
41  * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42  *
43  * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44  *
45  * may be used to endorse or promote products derived from this software without
46  * specific prior written permission.
47  *
48  * DISCLAIMER.
49  *
50  * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53  * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59  * OF THE POSSIBILITY OF SUCH DAMAGE.
60  *
61  */
62 #ifndef ISS_SENSORS_H_
63 #define ISS_SENSORS_H_
64 
65 #include "TI/tivx_ext_raw_image.h"
66 
67 #include <stdio.h>
68 #include <stdint.h>
69 #include <stdlib.h>
70 #include <assert.h>
71 
72 /*******************************************************************************
73  * Include files
74  *******************************************************************************
75  */
76 
77 /*******************************************************************************
78  * Defines
79  *******************************************************************************
80  */
81 
82 
87 #define SENSOR_I2C_TIMEOUT (5000U)
88 
89 typedef enum
90 {
104 
105 
111 typedef enum
112 {
125 
126 
127 #define IMAGE_SENSOR_REMOTE_SERVICE_NAME "com.ti.image_sensor"
128 #define CMD_PARAM_SIZE 384
129 
130 /* Maximum number of channels supported */
131 #define ISS_SENSORS_MAX_CHANNEL (12U)
132 
133 /* Max characters in the sensor name */
134 #define ISS_SENSORS_MAX_NAME (32U)
135 
136 /* Supports Sensor's name */
137 #define SENSOR_SONY_IMX390_UB953_D3 "IMX390-UB953_D3"
138 #define SENSOR_ONSEMI_AR0233_UB953_MARS "AR0233-UB953_MARS"
139 #define SENSOR_ONSEMI_AR0820_UB953_LI "AR0820-UB953_LI"
140 #define UB9XX_RAW_TESTPAT "UB9xxx_RAW12_TESTPATTERN"
141 #define UB96X_TESTPATTERN_UYVY "UB96x_UYVY_TESTPATTERN"
142 #define GW_AR0233_UYVY "GW_AR0233_UYVY"
143 #define SENSOR_OV2312_UB953_LI "OV2312-UB953_LI"
144 
145 /*******************************************************************************
146  * Data structure's
147  *******************************************************************************
148  */
149 
154 typedef enum
155 {
183 
184 
189 typedef enum
190 {
200 
205 typedef enum {
224 
229 typedef enum {
237 
242 typedef enum {
250 
251 
257 typedef struct
258 {
259  uint32_t totalWidth, totalHeight;
261  struct {
262  uint32_t startx, starty;
264  uint32_t width, height;
266  } info[ISS_SENSOR_MAX_EXPOSURE];
268 
273 typedef struct
274 {
275  uint16_t nRegAddr;
277  uint16_t nRegValue;
279  uint32_t nDelay;
281 } I2cParams;
282 
283 
289 typedef struct
290 {
291  uint32_t chId;
293  uint32_t expRatio;
295  uint32_t exposureTime[ISS_SENSOR_MAX_EXPOSURE];
298  uint32_t analogGain[ISS_SENSOR_MAX_EXPOSURE];
302 
303 
309 typedef struct
310 {
311  uint32_t chId;
313  uint32_t rGain[ISS_SENSOR_MAX_EXPOSURE];
316  uint32_t gGain[ISS_SENSOR_MAX_EXPOSURE];
319  uint32_t bGain[ISS_SENSOR_MAX_EXPOSURE];
322  uint32_t colorTemp[ISS_SENSOR_MAX_EXPOSURE];
326 
327 
332 typedef struct
333 {
334  uint32_t chId;
336  uint8_t *pDccCfg;
338  uint32_t dccCfgSize;
341 
342 
343 /*
344  * \brief Sensor Information structure
345  * \ingroup group_vision_function_imaging_sensordrv
346  */
347 typedef struct
348 {
349  tivx_raw_image_create_params_t raw_params;
351  uint32_t features;
353  uint32_t aewbMode;
355  uint32_t fps;
357  uint32_t numDataLanes;
359  uint32_t dataLanesMap[4];
361  uint32_t dataLanesPolarity[4];
363  uint32_t csi_laneBandSpeed;
366 
367 
368 /*
369  * \brief Create Time parameters, ISS sensor layer uses these
370  * parameters and configures board module and sensor.
371  * \ingroup group_vision_function_imaging_sensordrv
372  */
373 typedef struct
374 {
377  uint16_t i2cInstId;
379  uint8_t i2cAddrSensor[ISS_SENSORS_MAX_CHANNEL];
381  uint8_t i2cAddrSer[ISS_SENSORS_MAX_CHANNEL];
385  uint32_t num_channels;
387  uint32_t dccId;
390 
391 /*******************************************************************************
392  * Defines
393  *******************************************************************************
394  */
395 #define ISS_SENSORS_MAX_SUPPORTED_SENSOR (12U)
396 
397 #define DEFAULT_TARGET_BRIGHTNESS_MIN 40
398 #define DEFAULT_TARGET_BRIGHTNESS_MAX 50
399 #define DEFAULT_TARGET_BRIGHTNESS 45
400 #define DEFAULT_TARGET_THRESHOLD 5
401 #define DEFAULT_EXPOSURE_TIME 1
402 #define DEFAULT_ENABLE_BLC 0
403 
404 
405 /*******************************************************************************
406  * Data Structures
407  *******************************************************************************
408  */
409 
410 /*
411  * \brief CSI-2 COmplex I/O Lane Configuration
412  * \ingroup group_vision_function_imaging_sensordrv
413  */
414 typedef struct
415 {
416  uint8_t pol;
419  uint8_t position;
428 
429 
430 /* \brief Structure used for describing sensor interfacing.
431  *
432  * \ingroup group_vision_function_imaging_sensordrv
433  */
434 typedef struct
435 {
438  uint8_t enableFsin;
443 
444 
445 /* \brief Structure used for specifying register configurations of sensor, serializer and deserializer.
446  *
447  * desCfgPreScript : Deserializer config script pre-sensor initialization
448  * serCfgPreScript : Serializer config script pre-sensor initialization
449  * sensorCfgPreScript : Sensor config script without starting streaming
450  * desCfgPostScript : Deserializer script post-sensor initialization
451  * serCfgPostScript : Serializer config script post-sensor initialization
452  * sensorCfgPostScript : Sensor config script after starting streaming
453  *
454  *
455  * Each script is an array of type I2CParams
456  * The scripts maybe of variable lengths. Scripts can also be NULL is the config is not needed.
457  *
458  * Last entry in serailizer and deserializer config script must be {0xFFFF, 0x00, 0x00}
459  *
460  *
461  * \ingroup group_vision_function_imaging_sensordrv
462  */
463 typedef struct
464 {
472 
477 typedef struct {
478  uint32_t min;
480  uint32_t max;
482 } IssAeRange;
483 
484 
491 #define MAX_AE_DYN_PARAMS (10U)
492 
497 typedef struct {
498  IssAeRange exposureTimeRange[MAX_AE_DYN_PARAMS];
500  IssAeRange analogGainRange[MAX_AE_DYN_PARAMS];
502  IssAeRange digitalGainRange[MAX_AE_DYN_PARAMS];
504  uint32_t numAeDynParams;
510  uint32_t threshold;
514  uint32_t enableBlc;
517 
518 
524 typedef struct {
528  uint32_t sensor_pre_gain;
531 
536 typedef int32_t (*IssSensor_ProbeFxn) (uint32_t chId, void *pSensorHdl);
537 
542 typedef int32_t (*IssSensor_ConfigFxn) (uint32_t chId, void *pSensorHdl, uint32_t sensor_features_requested);
543 
548 typedef int32_t (*IssSensor_StreamOnFxn) (uint32_t chId, void *pSensorHdl);
549 
554 typedef int32_t (*IssSensor_StreamOffFxn) (uint32_t chId, void *pSensorHdl);
555 
561 typedef int32_t (*IssSensor_PowerOnFxn) (uint32_t chId, void *pSensorHdl);
562 
567 typedef int32_t (*IssSensor_PowerOffFxn) (uint32_t chId, void *pSensorHdl);
568 
573 typedef int32_t (*IssSensor_SetAeParamsFxn) (void *pSensorHdl, uint32_t chId, IssSensor_ExposureParams *pExpPrms);
574 
579 typedef int32_t (*IssSensor_GetDccParamsFxn) (uint32_t chId, void *pSensorHdl, IssSensor_DccParams *pDccPrms);
580 
585 typedef int32_t (*IssSensor_GetExpParamsFxn) (uint32_t chId, void *pSensorHdl, IssSensor_ExposureParams *pExpPrms);
586 
591 typedef void (*IssSensor_InitAewbConfigFxn) (uint32_t chId, void *pSensorHdl);
592 
597 typedef void (*IssSensor_GetIspConfigFxn) (uint32_t chId, void *pSensorHdl);
598 
603 typedef void (*IssSensor_DeinitFxn) (uint32_t chId, void *pSensorHdl);
604 
609 typedef int32_t (*I2cRegReadWriteFxn) (uint32_t chId, void *pSensorHdl, uint32_t readWriteFlag, I2cParams *pReg);
610 
615 typedef int32_t (*IssSensor_GetExpPrgFxn) (uint32_t chId, void *pSensorHdl, IssAeDynamicParams *p_ae_dynPrms);
616 
621 typedef int32_t (*IssSensor_GetWbConfigFxn) (uint32_t chId, void *pSensorHdl, IssAwbDynamicParams *p_awb_dynPrms);
622 
623 
628 typedef int32_t (*IssSensor_SetAwbParamsFxn) (void *pSensorHdl, uint32_t chId, IssSensor_WhiteBalanceParams *pWbPrms);
629 
652 };
653 /* Forward Declaration of Sensor Params */
654 typedef struct IssSensorFxns_t IssSensorFxns;
655 
660 typedef struct
661 {
662  uint32_t isUsed;
666  IssSensorFxns * sensorFxns;
671 
672 
673 /*******************************************************************************
674  * Functions Declarations
675  *******************************************************************************
676  * \ingroup group_vision_function_imaging_sensordrv
677  */
678 
679 
695 int32_t IssSensor_Init();
696 
709 int32_t IssSensor_DeInit();
710 
725 int32_t IssSensor_Register(IssSensors_Handle *pSensorPrms);
726 
727 
745 int32_t IssSensor_GetSensorInfo(char * name, IssSensor_CreateParams *pCreatePrms);
746 
765 int32_t IssSensor_GetSensorInfoFromDccId(uint32_t dccId, IssSensor_Info *pInfo);
766 
786 
805 void* IssSensor_Create(char * name);
806 
828 int32_t IssSensor_Control(void* handle, uint32_t cmd, void* cmdArgs,
829  void* cmdRetArgs);
830 
847 int32_t IssSensor_Start(void* handle, uint32_t chId);
848 
865 int32_t IssSensor_Stop(void* handle, uint32_t chId);
866 
882 int32_t IssSensor_Delete(void* handle);
883 
897 int32_t ub960_cfgScript(I2cParams *script, int8_t ub960InstanceId);
898 
913 int32_t ub953_cfgScript(uint8_t i2cInstId, uint8_t i2cAddr, I2cParams *script);
914 
928 
946 int32_t IssSensor_PowerOn(void* handle, uint32_t chMask);
947 
948 
962 int32_t IssSensor_PowerOff(void* handle, uint32_t chId);
963 
980 int32_t IssSensor_Config(void* handle, uint32_t chId, uint32_t feat);
981 
996 int32_t IssSensor_SetAeParams(void *handle, uint32_t chId, IssSensor_ExposureParams *pExpPrms);
997 
1012 int32_t IssSensor_SetAwbParams(void *handle, uint32_t chId, IssSensor_WhiteBalanceParams *pWbPrms);
1013 
1014 int32_t enableUB960Broadcast(int8_t ub960InstanceId);
1015 int32_t disableUB960Broadcast(int8_t ub960InstanceId);
1016 int32_t UB960_SetSensorAlias(uint32_t chId, uint8_t sensor_phy_i2c_addr_7bit, uint8_t ser_alias_i2c_addr_7bit);
1017 
1018 
1032 int32_t enableUB960Streaming(uint32_t chId);
1033 
1047 int32_t disableUB960Streaming(uint32_t chId);
1048 
1049 
1074 int8_t getUB960InstIdFromChId(uint32_t chId);
1075 int32_t initFusion2_UB97x();
1076 int32_t deInitFusion2_UB97x();
1077 
1078 #endif /* End of ISS_SENSORS_H_*/
1079 
int32_t IssSensor_PowerOn(void *handle, uint32_t chMask)
Function to power ON the sensor.
Definition: iss_sensors.h:198
Definition: iss_sensors.h:114
AutoExposure results data structure.
Definition: iss_sensors.h:289
Definition: iss_sensors.h:180
Definition: iss_sensors.h:178
Definition: iss_sensors.h:208
int32_t(* IssSensor_ConfigFxn)(uint32_t chId, void *pSensorHdl, uint32_t sensor_features_requested)
Callback for sensor & SerDes configuration.
Definition: iss_sensors.h:542
IssAeRange blueGainRange
Definition: iss_sensors.h:526
uint32_t isUsed
Definition: iss_sensors.h:662
uint32_t exposureTimeStepSize
Definition: iss_sensors.h:512
IssSensor_Exposures
Enum for different sensor exposures in WDR sensor.
Definition: iss_sensors.h:189
int32_t IssSensor_GetSensorInfoFromDccId(uint32_t dccId, IssSensor_Info *pInfo)
Function to get Sensor information for sensor whose DCC ID is passed. It searches in the table of reg...
int32_t IssSensor_Register(IssSensors_Handle *pSensorPrms)
Function to register a sensor driver with the driver framework.
IssSensor_Info sensorInfo
Definition: iss_sensors.h:383
uint32_t dccId
Definition: iss_sensors.h:387
IssSensor_StreamOnFxn streamOn
Definition: iss_sensors.h:638
I2cParams * desCfgPreScript
Definition: iss_sensors.h:465
Definition: iss_sensors.h:231
#define MAX_AE_DYN_PARAMS
Maximum number of dynamic parameter configuration supported for Auto Exposure Algorithm tuning...
Definition: iss_sensors.h:491
Definition: iss_sensors.h:191
Definition: iss_sensors.h:244
int32_t enableUB960Broadcast(int8_t ub960InstanceId)
Definition: iss_sensors.h:206
Definition: iss_sensors.h:101
IssSensor_StreamOffFxn streamOff
Definition: iss_sensors.h:639
IssSensor_ProbeFxn probe
Definition: iss_sensors.h:636
Sensor Specific Auto Exposure Dynamic Parameters.
Definition: iss_sensors.h:497
Definition: iss_sensors.h:463
Definition: iss_sensors.h:168
Definition: iss_sensors.h:117
Definition: iss_sensors.h:195
Definition: iss_sensors.h:210
Definition: iss_sensors.h:97
uint32_t chId
Definition: iss_sensors.h:334
uint32_t chId
Definition: iss_sensors.h:291
Definition: iss_sensors.h:116
uint32_t nDelay
Definition: iss_sensors.h:279
Definition: iss_sensors.h:347
uint32_t num_channels
Definition: iss_sensors.h:385
Definition: iss_sensors.h:162
IssSensors_Handle * IssSensor_GetSensorHandle(char *name)
Function to get the sensor handle for the given sensor. This is used by the DCC Network Handler to Re...
Definition: iss_sensors.h:373
int32_t IssSensor_Config(void *handle, uint32_t chId, uint32_t feat)
Function to configure the sensor.
Definition: iss_sensors.h:246
Definition: iss_sensors.h:99
Definition: iss_sensors.h:160
Definition: iss_sensors.h:93
Definition: iss_sensors.h:197
uint32_t sensor_pre_gain
Definition: iss_sensors.h:528
uint16_t nRegValue
Definition: iss_sensors.h:277
uint32_t chId
Definition: iss_sensors.h:311
uint16_t nRegAddr
Definition: iss_sensors.h:275
uint32_t totalWidth
Definition: iss_sensors.h:259
IssSensor_Features
Enum for Sensor Features.
Definition: iss_sensors.h:154
Definition: iss_sensors.h:166
int32_t(* IssSensor_SetAwbParamsFxn)(void *pSensorHdl, uint32_t chId, IssSensor_WhiteBalanceParams *pWbPrms)
Callback for setting WB gains in the sensor.
Definition: iss_sensors.h:628
int32_t IssSensor_DeInit()
Function to de-initialize sensor driver framework. Unregisters remote service.
Definition: iss_sensors.h:122
int32_t(* I2cRegReadWriteFxn)(uint32_t chId, void *pSensorHdl, uint32_t readWriteFlag, I2cParams *pReg)
Callback for reading/writing sensor registers from the application. Reserved for future use...
Definition: iss_sensors.h:609
uint32_t threshold
Definition: iss_sensors.h:510
int32_t(* IssSensor_PowerOffFxn)(uint32_t chId, void *pSensorHdl)
Callback for powering OFF the sensor, if applicable.
Definition: iss_sensors.h:567
int32_t(* IssSensor_ProbeFxn)(uint32_t chId, void *pSensorHdl)
Callback for sensor probe. Detection of sensor HW using chip ID register.
Definition: iss_sensors.h:536
int32_t(* IssSensor_StreamOffFxn)(uint32_t chId, void *pSensorHdl)
Callback for stopping streaming.
Definition: iss_sensors.h:554
IssSensor_CreateParams * createPrms
Definition: iss_sensors.h:664
IssAeRange targetBrightnessRange
Definition: iss_sensors.h:506
Definition: iss_sensors.h:156
#define ISS_SENSORS_MAX_CHANNEL
Definition: iss_sensors.h:131
Min/Max Range, used in AWB calibration data.
Definition: iss_sensors.h:477
AutoWhiteBalance results data structure.
Definition: iss_sensors.h:309
Definition: iss_sensors.h:118
int32_t(* IssSensor_GetWbConfigFxn)(uint32_t chId, void *pSensorHdl, IssAwbDynamicParams *p_awb_dynPrms)
Callback for getting sensor&#39;s WB constraints. Needed for AutoWhiteBalance tuning. ...
Definition: iss_sensors.h:621
uint8_t pol
Definition: iss_sensors.h:416
uint32_t features
Definition: iss_sensors.h:351
Definition: iss_sensors.h:176
uint8_t sensorBroadcast
Definition: iss_sensors.h:436
IssSensor_GetDccParamsFxn getDccParams
Definition: iss_sensors.h:644
int32_t IssSensor_Stop(void *handle, uint32_t chId)
Used stopping the sensor, which is alraedy opened using Create function. Must be called after Create ...
Definition: iss_sensors.h:218
uint32_t fps
Definition: iss_sensors.h:355
For Line Interleaved WDR mode, this structure is used for specifying position of each exposure frame...
Definition: iss_sensors.h:257
IssSensors_Handle * getSensorHandleFromName(char *name)
Function to get sensor handle from name.
#define ISS_SENSORS_MAX_NAME
Definition: iss_sensors.h:134
Definition: iss_sensors.h:212
int8_t getUB960InstIdFromChId(uint32_t chId)
Function to map UB960 Instance to channel number On Fusion board the mapping is as follows Camera Cha...
tivx_raw_image_create_params_t raw_params
Definition: iss_sensors.h:349
Definition: iss_sensors.h:123
Structure for setting DCC params.
Definition: iss_sensors.h:332
IssSensor_DeinitFxn deinit
Definition: iss_sensors.h:649
Definition: iss_sensors.h:248
int32_t(* IssSensor_SetAeParamsFxn)(void *pSensorHdl, uint32_t chId, IssSensor_ExposureParams *pExpPrms)
Callback for setting sensor exposure and gain.
Definition: iss_sensors.h:573
uint16_t i2cInstId
Definition: iss_sensors.h:377
Definition: iss_sensors.h:96
IssSensor_GetIspConfigFxn getIspConfig
Definition: iss_sensors.h:646
Definition: iss_sensors.h:233
void(* IssSensor_DeinitFxn)(uint32_t chId, void *pSensorHdl)
Callback for de-initializing the sensor, if applicable. Reserved for future use.
Definition: iss_sensors.h:603
uint32_t expRatio
Definition: iss_sensors.h:293
uint8_t enableFsin
Definition: iss_sensors.h:438
IssSensor_PowerOnFxn powerOn
Definition: iss_sensors.h:640
Definition: iss_sensors.h:174
I2cParams * sensorCfgPreScript
Definition: iss_sensors.h:467
I2cParams * sensorCfgPostScript
Definition: iss_sensors.h:470
uint32_t numDataLanes
Definition: iss_sensors.h:357
Handle to the sensor driver. Includes all the information about the sensor.
Definition: iss_sensors.h:660
IMAGE_SENSOR_CTRLCMD
IOCTLS supported as part of IM_SENSOR_CMD_CTL command.
Definition: iss_sensors.h:111
int32_t disableUB960Broadcast(int8_t ub960InstanceId)
Definition: iss_sensors.h:98
int32_t IssSensor_Start(void *handle, uint32_t chId)
Used Starting the sensor, which is already opened using Create function. Must be called after Create ...
uint32_t starty
Definition: iss_sensors.h:262
Definition: iss_sensors.h:193
IssSensor_GetExpParamsFxn getExpParams
Definition: iss_sensors.h:642
int32_t disableUB960Streaming(uint32_t chId)
Function to enable streaming from UB960 by setting register 0x33 to 0x2 for the given camera channel...
IssSensor_GetExpPrgFxn getExpPrg
Definition: iss_sensors.h:648
uint32_t csi_laneBandSpeed
Definition: iss_sensors.h:363
uint32_t max
Definition: iss_sensors.h:480
int32_t IssSensor_Control(void *handle, uint32_t cmd, void *cmdArgs, void *cmdRetArgs)
Used for sending control commands, this layer supports all configuration using control commants...
uint32_t dccCfgSize
Definition: iss_sensors.h:338
Structure containins sensor information, used for registering it to the sensor framework.
Definition: iss_sensors.h:635
int32_t deInitFusion2_UB97x()
void(* IssSensor_GetIspConfigFxn)(uint32_t chId, void *pSensorHdl)
Callback for getting ISP settings specific to the sensor, if applicable. Reserved for future use...
Definition: iss_sensors.h:597
int32_t IssSensor_GetSensorInfo(char *name, IssSensor_CreateParams *pCreatePrms)
Function to get Sensor information for given sensor It searches in the table of registered sensors...
uint8_t * pDccCfg
Definition: iss_sensors.h:336
int32_t IssSensor_PowerOff(void *handle, uint32_t chId)
Function to power OFF the sensor.
int32_t IssSensor_Init()
Function to initialize sensor driver framework. Registers with remote service. Includes init function...
int32_t UB960_SetSensorAlias(uint32_t chId, uint8_t sensor_phy_i2c_addr_7bit, uint8_t ser_alias_i2c_addr_7bit)
Definition: iss_sensors.h:216
Definition: iss_sensors.h:121
Definition: iss_sensors.h:115
Definition: iss_sensors.h:120
IssSensor_InitAewbConfigFxn initAewbConfig
Definition: iss_sensors.h:645
AlgItt_IssAewbMode
AEWB Algorithm Mode.
Definition: iss_sensors.h:205
AlgItt_IssAeMode
AE Algorithm SubModes.
Definition: iss_sensors.h:229
Definition: iss_sensors.h:113
uint32_t width
Definition: iss_sensors.h:264
Definition: iss_sensors.h:92
int32_t IssSensor_SetAwbParams(void *handle, uint32_t chId, IssSensor_WhiteBalanceParams *pWbPrms)
Function to send WhiteBalance gains to the sensor.
uint8_t position
Definition: iss_sensors.h:419
IssSensor_PowerOffFxn powerOff
Definition: iss_sensors.h:641
Register address and value pair, with delay.
Definition: iss_sensors.h:273
uint32_t targetBrightness
Definition: iss_sensors.h:508
Definition: iss_sensors.h:164
Definition: iss_sensors.h:91
int32_t(* IssSensor_GetDccParamsFxn)(uint32_t chId, void *pSensorHdl, IssSensor_DccParams *pDccPrms)
Callback for getting DCC parameters. Reserved for future use.
Definition: iss_sensors.h:579
Definition: iss_sensors.h:100
IssSensor_GetWbConfigFxn getWbCfg
Definition: iss_sensors.h:650
int32_t(* IssSensor_GetExpPrgFxn)(uint32_t chId, void *pSensorHdl, IssAeDynamicParams *p_ae_dynPrms)
Callback for getting sensor&#39;s exposure constraints. Needed for AutoExposure tuning.
Definition: iss_sensors.h:615
Sensor Specific Auto WhiteBalance Dynamic Parameters.
Definition: iss_sensors.h:524
Definition: iss_sensors.h:119
Definition: iss_sensors.h:172
I2cParams * serCfgPreScript
Definition: iss_sensors.h:466
void(* IssSensor_InitAewbConfigFxn)(uint32_t chId, void *pSensorHdl)
Callback for setting AEWB specific sensor settings, if applicable. Reserved for future use...
Definition: iss_sensors.h:591
Definition: iss_sensors.h:414
I2cRegReadWriteFxn readWriteReg
Definition: iss_sensors.h:647
AlgItt_IssAwbMode
AWB Algorithm SubModes.
Definition: iss_sensors.h:242
IMAGE_SENSOR_COMMAND
Definition: iss_sensors.h:89
Definition: iss_sensors.h:434
Definition: iss_sensors.h:102
int32_t enableUB960Streaming(uint32_t chId)
Function to enable streaming from UB960 by setting register 0x33 to 0x3 for the given camera channel...
uint32_t enableBlc
Definition: iss_sensors.h:514
IssAeRange greenGainRange
Definition: iss_sensors.h:527
int32_t ub960_cfgScript(I2cParams *script, int8_t ub960InstanceId)
Function to configure UB960 deserializer.
Definition: iss_sensors.h:235
void * IssSensor_Create(char *name)
Creates the sensor, based on the create params, it searches for the given sensor in the registered se...
IssSensor_ConfigFxn config
Definition: iss_sensors.h:637
I2cParams * desCfgPostScript
Definition: iss_sensors.h:468
int32_t(* IssSensor_GetExpParamsFxn)(uint32_t chId, void *pSensorHdl, IssSensor_ExposureParams *pExpPrms)
Callback for getting current exposure settings. Reserved for future use.
Definition: iss_sensors.h:585
IssSensor_SetAeParamsFxn setAeParams
Definition: iss_sensors.h:643
uint32_t numAeDynParams
Definition: iss_sensors.h:504
int32_t IssSensor_SetAeParams(void *handle, uint32_t chId, IssSensor_ExposureParams *pExpPrms)
Function to send Exposure parameters to the sensor.
IssSensorFxns * sensorFxns
Definition: iss_sensors.h:666
I2cParams * serCfgPostScript
Definition: iss_sensors.h:469
IssSensorIntfParams * sensorIntfPrms
Definition: iss_sensors.h:668
int32_t(* IssSensor_StreamOnFxn)(uint32_t chId, void *pSensorHdl)
Callback for starting streaming.
Definition: iss_sensors.h:548
int32_t initFusion2_UB97x()
int32_t IssSensor_Delete(void *handle)
Used for deleting the sensor, which is already opened using Create function. Internally it deletes se...
Definition: iss_sensors.h:95
uint32_t aewbMode
Definition: iss_sensors.h:353
int32_t(* IssSensor_PowerOnFxn)(uint32_t chId, void *pSensorHdl)
Callback for powering ON the sensor and/or configuring the deserialser so that the sensor is visible ...
Definition: iss_sensors.h:561
IssAeRange redGainRange
Definition: iss_sensors.h:525
uint32_t min
Definition: iss_sensors.h:478
Definition: iss_sensors.h:94
uint8_t numCamerasStreaming
Definition: iss_sensors.h:440
IssSensor_SetAwbParamsFxn setAwbParams
Definition: iss_sensors.h:651
Definition: iss_sensors.h:158
int32_t ub953_cfgScript(uint8_t i2cInstId, uint8_t i2cAddr, I2cParams *script)
Function to configure UB953 serializer.
Definition: iss_sensors.h:170