monoZ docs
|
#include "stdio.h"
#include "math.h"
#include "stdlib.h"
#include "stdint.h"
Go to the source code of this file.
Data Structures | |
struct | Si1133_coeff |
struct | Si1133_LuxCoeff |
Functions | |
struct | __attribute ((packed)) |
Structure to store the data measured by the Si1133. More... | |
Si1133_error | SI1133_init (void) |
Si1133_error | SI1133_deinit (void) |
Si1133_error | SI1133_get_hardware_id (uint8_t *hardware_id) |
Si1133_error | SI1133_measure_lux_uv (float *lux, float *uvi) |
Si1133_error | SI1133_get_measurement (float *lux, float *uvi) |
float | SI1133_get_light_level (void) |
float | SI1133_get_uv_index (void) |
Variables | |
Si1133_samples | |
enum Si1133_register |
Definition at line 23 of file MZ_Addon_Si1133.h.
enum Si1133_parameter |
Definition at line 67 of file MZ_Addon_Si1133.h.
enum Si1133_command |
Definition at line 109 of file MZ_Addon_Si1133.h.
enum Si1133_response |
Definition at line 121 of file MZ_Addon_Si1133.h.
enum Si1133_error |
Enumerator | |
---|---|
SI_OK | |
SI_FAIL |
Definition at line 154 of file MZ_Addon_Si1133.h.
struct __attribute | ( | (packed) | ) |
Structure to store the data measured by the Si1133.
< Interrupt status of the device
< Channel 0 measurement data
< Channel 1 measurement data
< Channel 2 measurement data
< Channel 3 measurement data
Definition at line 1 of file MZ_Addon_Si1133.h.
Si1133_error SI1133_init | ( | void | ) |
Definition at line 444 of file MZ_Addon_Si1133.c.
Si1133_error SI1133_deinit | ( | void | ) |
Definition at line 474 of file MZ_Addon_Si1133.c.
Si1133_error SI1133_get_hardware_id | ( | uint8_t * | hardware_id | ) |
Definition at line 529 of file MZ_Addon_Si1133.c.
Si1133_error SI1133_measure_lux_uv | ( | float * | lux, |
float * | uvi | ||
) |
Definition at line 534 of file MZ_Addon_Si1133.c.
Si1133_error SI1133_get_measurement | ( | float * | lux, |
float * | uvi | ||
) |
Definition at line 569 of file MZ_Addon_Si1133.c.
float SI1133_get_light_level | ( | void | ) |
Definition at line 588 of file MZ_Addon_Si1133.c.
float SI1133_get_uv_index | ( | void | ) |
Definition at line 595 of file MZ_Addon_Si1133.c.
Si1133_samples |
Definition at line 139 of file MZ_Addon_Si1133.h.