EasyManua.ls Logo

ST VD6283 - Enum Stals_Mode_T; Enum Stals_Flickeroutputtype_T

ST VD6283
27 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
use STALS_GetControl() to get wa status. pControlValue is then an in/out parameter. You call it with the wa
for which you want to know state. On exit you read msb bit to know wa status.
3.5.6 enum STALS_Mode_t
This enumeration is aimed at defining the different behavior modes of the STALS device.
Enumerator
STALS_MODE_ALS_SINGLE_SHOT Single shot mode. In this mode, the STALS records and accumulates the
light for 1 single period.
The STALS driver client is responsible for starting the next integration period, by calling the STALS_Start function
again
STALS_MODE_ALS_SYNCHRONOUS Synchronous mode. This mode, is a continuous measurement mode
meaning that this needs to be stopped by calling STALS_Stop. But a handshake is necessary to have
the registers updated with the values of the on going measurement. This handshake is performed by the
STALS_GetAlsValues function.
Two options are available for the handshake
by I2C reading. In this case the AC data is available on the GPIO1 pin
by interrupt acknowledgment. In this case the AC data is NOT available
STALS_MODE_FLICKER Flicker mode. This mode outputs PDM on the GPIO1 or GPIO2 pin.
3.5.7 enum STALS_FlickerOutputType_t
Enumerator
STALS_FLICKER_OUTPUT_ANALOG Analog. DEPRECATED, use
STALS_FLICKER_OUTPUT_ANALOG_CFG_1 instead.
STALS_FLICKER_OUTPUT_ANALOG_CFG_1 Analog. PDM is output to GPIO1 through pad internal resistance.
STALS_FLICKER_OUTPUT_DIGITAL_PDM PDM Digital. This modes needs an external clock to feed the
device through the corresponding pin.
STALS_FLICKER_OUTPUT_ANALOG_CFG_2 Analog. PDM is output to GPIO2.
STALS_FLICKER_OUTPUT_ZC_CFG_1 Zero crossing. Zero crossing is output to GPIO1.
UM2878
Enumeration type documentation
UM2878 - Rev 1
page 20/27

Related product manuals