GetRegister

The function is described in the following sections.

Description

Read the sensor register value.

Syntax

The following code block shows the syntax of the function.
GetRegister(
    SENSOR_HANDLE *pstHandle,
    STF_U16 u16RegAddr,
    STF_U16 *pu16RegVal,
    STF_U8 u8Context
    );

Parameter

The function has the following parameters.
Table 1. GetRegister Parameter Description
Parameter Description Input/Output
pstHandle Sensor handle Input
u16RegAddr Register address Input
pu16RegVal Read back value from the sensor Output
u8Context Sensor contexts. No longer in use Input

Return

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

Requirement

None