SetGain
The function is described in the following sections.
Description
Set the current gain to the sensor.
Syntax
The following code block shows the syntax of the function.
SetGain(
SENSOR_HANDLE *pstHandle,
STF_DOUBLE dGain,
STF_U8 u8Context
);
Parameter
The function has the following parameters.
| Parameter | Description | Input/Output |
|---|---|---|
| pstHandle | Sensor handle | Input |
| dGain | Gain value | Input |
| u8Context | Sensor context. No longer in use | Input |
Return
The function has the following return values.
| Return | Description |
|---|---|
| 0 | Success |
| Other values | Failure |
Requirement
None
