Sensor Library API References
This section lists sensor APIs
SDK Management API
The
STFLIB_ISP_SENSOR_* APIs handle sensor discovery and lifecycle
at the SDK management layer. The libSensorapi.a and
libISPC.a files are required for using the following
API.| Synopsis |
|
| Description | Gets the sensor ID by the sensor name. |
| Parameter |
|
| Return | STF_S8: Positive identifier if the sensor is found or negative number otherwise |
| Synopsis |
|
| Description | Initializes a ST_SENSOR structure. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | De-initializes a ST_SENSOR structure. |
| Parameter |
|
| Return |
|
SENSOR_FUNCS Implementation API
This section provides API references for SENSOR_FUNCS implementation, including the
following:
| Synopsis |
|
| Description | Gets the sensor mode index. |
| Parameter |
|
| Return | Sensor mode index |
| Synopsis |
|
| Description | Gets the sensor mode index. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Gets the current state of the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Gets the sensor's connection data bus and I2C hardware information. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Sets the sensor mode. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Enables the sensor |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Disables the sensor |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Releases and de-initializes the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Gets the information of the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Reads the sensor register value. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Sets the sensor register value. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Sets the current gain to the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Gets the range of exposures the sensor can use. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Queries the sensor for the current exposure period. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Sets the sensor to the requested exposure period. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Sets flip and mirror value in the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Gets the fixed FPS value in the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Sets the FPS value in the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Programx the exposure time and gain in the sensor. |
| Parameter |
|
| Return |
|
| Synopsis |
|
| Description | Resets the sensor |
| Parameter |
|
| Return |
|