62 #ifndef ISS_SENSORS_H_ 63 #define ISS_SENSORS_H_ 65 #include "TI/tivx_ext_raw_image.h" 87 #define SENSOR_I2C_TIMEOUT (5000U) 127 #define IMAGE_SENSOR_REMOTE_SERVICE_NAME "com.ti.image_sensor" 128 #define CMD_PARAM_SIZE 384 131 #define ISS_SENSORS_MAX_CHANNEL (12U) 134 #define ISS_SENSORS_MAX_NAME (32U) 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" 359 uint32_t dataLanesMap[4];
361 uint32_t dataLanesPolarity[4];
395 #define ISS_SENSORS_MAX_SUPPORTED_SENSOR (12U) 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 491 #define MAX_AE_DYN_PARAMS (10U) 542 typedef int32_t (*
IssSensor_ConfigFxn) (uint32_t chId,
void *pSensorHdl, uint32_t sensor_features_requested);
1016 int32_t
UB960_SetSensorAlias(uint32_t chId, uint8_t sensor_phy_i2c_addr_7bit, uint8_t ser_alias_i2c_addr_7bit);
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'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'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