SetExposureAndGain

The function is described in the following sections.

Description

Program the exposure time and gain in the sensor.

Syntax

The following code block shows the syntax of the function.
SetExposureAndGain(
    SENSOR_HANDLE *pstHandle,
    STF_U32 u32Exposure,
    STF_DOUBLE dGain,
    STF_U8 u8Context
    );

Parameter

The function has the following parameters.
Table 1. SetExposureAndGain Parameter Description
Parameter Description Input/Output
pstHandle Sensor handle Input
u32Exposure Exposure time value Input
dGain Gain value Input
u8Context Sensor context. No longer in use Input

Return

The function has the following return values.
Table 2. SetExposureAndGain Return Description
Return Description
0 Success
Other values Failure

Requirement

None