BSB Developer Docs
Loading...
Searching...
No Matches
furi_hal_light_sensor.h
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5
6#include "furi_hal_i2c_types.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef enum {
13 FuriHalLightSensorLightWavelength600nm,
14 FuriHalLightSensorLightWavelength840nm,
15} FuriHalLightSensorLightWavelength;
16
23bool furi_hal_light_sensor_init(FuriHalI2cBusHandle* handle);
24
34bool furi_hal_light_sensor_read_raw(
35 FuriHalI2cBusHandle* handle,
36 FuriHalLightSensorLightWavelength wavelength,
37 uint16_t* value);
38
47bool furi_hal_light_sensor_read_lux(FuriHalI2cBusHandle* handle, float* value);
48
56bool furi_hal_light_sensor_sleep(FuriHalI2cBusHandle* handle, bool sleep);
57
58#ifdef __cplusplus
59}
60#endif
FuriHal i2c handle.
Definition furi_hal_i2c_types.h:44