GetState

The function is described in the following sections.

Description

Get the current state of the sensor.

Syntax

The following code block shows the syntax of the function.
GetState(
    SENSOR_HANDLE *pstHandle,
    SENSOR_STATUS *pstStatus
    );

Parameter

The function has the following parameters.
Table 1. GetState Parameter Description
Parameter Description Input/Output
pstHandle Sensor handle Input
pstStatus Sensor state Output

Return

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

Requirement

None