LibDriver ENS160
Loading...
Searching...
No Matches
driver_ens160_interrupt.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_ENS160_INTERRUPT_H
38#define DRIVER_ENS160_INTERRUPT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define ENS160_INTERRUPT_DEFAULT_PIN_POLARITY ENS160_PIN_POLARITY_LOW
55#define ENS160_INTERRUPT_DEFAULT_PIN_DRIVE ENS160_PIN_DRIVE_PUSH_PULL
56#define ENS160_INTERRUPT_DEFAULT_GENERAL_PURPOSE_READ_INTERRUPT_PIN_ASSERTED ENS160_BOOL_FALSE
57#define ENS160_INTERRUPT_DEFAULT_DATA_INTERRUPT_PIN_ASSERTED ENS160_BOOL_TRUE
58
67
78uint8_t ens160_interrupt_init(ens160_interface_t interface, ens160_address_t addr_pin, void (*callback)(uint8_t type, uint16_t *dat));
79
87uint8_t ens160_interrupt_deinit(void);
88
100uint8_t ens160_interrupt_read(uint8_t *aqi_uba, uint16_t *tvoc_ppb, uint16_t *eco2_ppm, uint16_t *etoh_ppb);
101
110uint8_t ens160_interrupt_read_raw(float resistance_ohm[4]);
111
121uint8_t ens160_interrupt_set_compensation(float celsius_deg, float percentage);
122
132uint8_t ens160_interrupt_get_compensation(float *celsius_deg, float *percentage);
133
137
138#ifdef __cplusplus
139}
140#endif
141
142#endif
driver ens160 interface header file
ens160_address_t
ens160 address enumeration definition
ens160_interface_t
ens160 interface enumeration definition
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_irq_handler(void)
interrupt irq
uint8_t ens160_interrupt_set_compensation(float celsius_deg, float percentage)
interrupt example set compensation
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_get_compensation(float *celsius_deg, float *percentage)
interrupt example get compensation
uint8_t ens160_interrupt_read_raw(float resistance_ohm[4])
interrupt example read raw
uint8_t ens160_interrupt_deinit(void)
interrupt example deinit