![]() |
LibDriver ENS160
|
ens160 example driver modules More...
Macros | |
| #define | ENS160_INTERRUPT_DEFAULT_PIN_POLARITY ENS160_PIN_POLARITY_LOW |
| ens160 interrupt example default definition | |
| #define | ENS160_INTERRUPT_DEFAULT_PIN_DRIVE ENS160_PIN_DRIVE_PUSH_PULL |
| #define | ENS160_INTERRUPT_DEFAULT_GENERAL_PURPOSE_READ_INTERRUPT_PIN_ASSERTED ENS160_BOOL_FALSE |
| #define | ENS160_INTERRUPT_DEFAULT_DATA_INTERRUPT_PIN_ASSERTED ENS160_BOOL_TRUE |
Functions | |
| uint8_t | ens160_basic_init (ens160_interface_t interface, ens160_address_t addr_pin) |
| basic example init | |
| uint8_t | ens160_basic_deinit (void) |
| basic example deinit | |
| uint8_t | ens160_basic_read (uint8_t *aqi_uba, uint16_t *tvoc_ppb, uint16_t *eco2_ppm, uint16_t *etoh_ppb) |
| basic example read | |
| uint8_t | ens160_basic_read_raw (float resistance_ohm[4]) |
| basic example read raw | |
| uint8_t | ens160_basic_set_compensation (float celsius_deg, float percentage) |
| basic example set compensation | |
| uint8_t | ens160_basic_get_compensation (float *celsius_deg, float *percentage) |
| basic example get compensation | |
| uint8_t | ens160_interrupt_irq_handler (void) |
| interrupt irq | |
| uint8_t | ens160_interrupt_init (ens160_interface_t interface, ens160_address_t addr_pin, void(*callback)(uint8_t type, uint16_t *dat)) |
| interrupt example init | |
| uint8_t | ens160_interrupt_deinit (void) |
| interrupt example deinit | |
| uint8_t | ens160_interrupt_read (uint8_t *aqi_uba, uint16_t *tvoc_ppb, uint16_t *eco2_ppm, uint16_t *etoh_ppb) |
| interrupt example read | |
| uint8_t | ens160_interrupt_read_raw (float resistance_ohm[4]) |
| interrupt example read raw | |
| uint8_t | ens160_interrupt_set_compensation (float celsius_deg, float percentage) |
| interrupt example set compensation | |
| uint8_t | ens160_interrupt_get_compensation (float *celsius_deg, float *percentage) |
| interrupt example get compensation | |
ens160 example driver modules
| #define ENS160_INTERRUPT_DEFAULT_DATA_INTERRUPT_PIN_ASSERTED ENS160_BOOL_TRUE |
enable
Definition at line 57 of file driver_ens160_interrupt.h.
| #define ENS160_INTERRUPT_DEFAULT_GENERAL_PURPOSE_READ_INTERRUPT_PIN_ASSERTED ENS160_BOOL_FALSE |
disable
Definition at line 56 of file driver_ens160_interrupt.h.
| #define ENS160_INTERRUPT_DEFAULT_PIN_DRIVE ENS160_PIN_DRIVE_PUSH_PULL |
push-pull
Definition at line 55 of file driver_ens160_interrupt.h.
| #define ENS160_INTERRUPT_DEFAULT_PIN_POLARITY ENS160_PIN_POLARITY_LOW |
ens160 interrupt example default definition
active low
Definition at line 54 of file driver_ens160_interrupt.h.
| uint8_t ens160_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 175 of file driver_ens160_basic.c.
| uint8_t ens160_basic_get_compensation | ( | float * | celsius_deg, |
| float * | percentage ) |
basic example get compensation
| [out] | *celsius_deg | pointer to a celsius degress buffer |
| [out] | *percentage | pointer to a humidity percentage buffer |
Definition at line 300 of file driver_ens160_basic.c.
| uint8_t ens160_basic_init | ( | ens160_interface_t | interface, |
| ens160_address_t | addr_pin ) |
basic example init
| [in] | interface | chip interface |
| [in] | addr_pin | iic device address |
Definition at line 50 of file driver_ens160_basic.c.
| uint8_t ens160_basic_read | ( | uint8_t * | aqi_uba, |
| uint16_t * | tvoc_ppb, | ||
| uint16_t * | eco2_ppm, | ||
| uint16_t * | etoh_ppb ) |
basic example read
| [out] | *aqi_uba | pointer to an aqi buffer |
| [out] | *tvoc_ppb | pointer to a tvoc buffer |
| [out] | *eco2_ppm | pointer to a eco2 buffer |
| [out] | *etoh_ppb | pointer to a etoh buffer |
Definition at line 139 of file driver_ens160_basic.c.
| uint8_t ens160_basic_read_raw | ( | float | resistance_ohm[4] | ) |
basic example read raw
| [out] | *resistance_ohm | pointer to a resistance ohm buffer |
Definition at line 193 of file driver_ens160_basic.c.
| uint8_t ens160_basic_set_compensation | ( | float | celsius_deg, |
| float | percentage ) |
basic example set compensation
| [in] | celsius_deg | celsius degress |
| [in] | percentage | humidity percentage |
Definition at line 255 of file driver_ens160_basic.c.
| uint8_t ens160_interrupt_deinit | ( | void | ) |
interrupt example deinit
Definition at line 233 of file driver_ens160_interrupt.c.
| uint8_t ens160_interrupt_get_compensation | ( | float * | celsius_deg, |
| float * | percentage ) |
interrupt example get compensation
| [out] | *celsius_deg | pointer to a celsius degrees buffer |
| [out] | *percentage | pointer to a humidity percentage buffer |
Definition at line 358 of file driver_ens160_interrupt.c.
| uint8_t ens160_interrupt_init | ( | ens160_interface_t | interface, |
| ens160_address_t | addr_pin, | ||
| void(* | callback )(uint8_t type, uint16_t *dat) ) |
interrupt example init
| [in] | interface | chip interface |
| [in] | addr_pin | iic device address |
| [in] | *callback | pointer to a callback function |
Definition at line 68 of file driver_ens160_interrupt.c.
| uint8_t ens160_interrupt_irq_handler | ( | void | ) |
interrupt irq
Definition at line 48 of file driver_ens160_interrupt.c.
| uint8_t ens160_interrupt_read | ( | uint8_t * | aqi_uba, |
| uint16_t * | tvoc_ppb, | ||
| uint16_t * | eco2_ppm, | ||
| uint16_t * | etoh_ppb ) |
interrupt example read
| [out] | *aqi_uba | pointer to an aqi buffer |
| [out] | *tvoc_ppb | pointer to a tvoc buffer |
| [out] | *eco2_ppm | pointer to an eco2 buffer |
| [out] | *etoh_ppb | pointer to a etoh buffer |
Definition at line 197 of file driver_ens160_interrupt.c.
| uint8_t ens160_interrupt_read_raw | ( | float | resistance_ohm[4] | ) |
interrupt example read raw
| [out] | *resistance_ohm | pointer to a resistance ohm buffer |
Definition at line 251 of file driver_ens160_interrupt.c.
| uint8_t ens160_interrupt_set_compensation | ( | float | celsius_deg, |
| float | percentage ) |
interrupt example set compensation
| [in] | celsius_deg | celsius degrees |
| [in] | percentage | humidity percentage |
Definition at line 313 of file driver_ens160_interrupt.c.