EasyManua.ls Logo

ST VD6283 - Stals_Errcode_T Stals_Getalsvalues; Stals_Errcode_T Stals_Getflickerfrequency

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...
3.2.16 STALS_ErrCode_t STALS_GetAlsValues
STALS_ErrCode_t STALS_GetAlsValues (void *pHandle, uint8_t Channels, struct STALS_Als_t *pAlsValue,
uint8_t *pMeasureValid)
This function provides the event count values for the selected channels.
Table 30. Parameters
Parameter Description
pHandle Opaque pointer used as the id of the instance of the driver
Channels
An OR value of the STALS_Channel_Id_t that sets the channels from which the
event count values are to be retrieved. See Section 3.5.1 STALS_Channel_Id_t
pAlsValue Pointer on a structure storing the counted event values
pMeasureValid Pointer on a flag indicating if the measurement is valid
Table 31. Return values
Reutrn value Description
STALS_NO_ERROR Success
STALS_ERROR_INVALID_PARAMS At least one of the provided parameters to the function is invalid
STALS_ERROR_WRITE Could not write any data in the device through I2C
STALS_ERROR_READ Could not read any data from the device through I2C
3.2.17 STALS_ErrCode_t STALS_GetFlickerFrequency
STALS_ErrCode_t STALS_GetFlickerFrequency (void *pHandle, struct STALS_FlickerInfo_t *pFlickerInfo)
This function returns the flicker main harmonic frequency.
Table 32. Parameters
Parameter Description
pHandle Opaque pointer used as the id of the instance of the driver
pFlickerInfo A pointer on an STALS_FlickerInfo_t structure
Table 33. Return values
Return value Description
STALS_NO_ERROR_FNCT_DEPRECA
TED
Function not supported
UM2878
STALS API definition
UM2878 - Rev 1
page 14/27

Related product manuals