LibDriver INA226  1.0.0
INA226 full-featured driver
driver_ina226_alert.h
Go to the documentation of this file.
1 
37 #ifndef DRIVER_INA226_ALERT_H
38 #define DRIVER_INA226_ALERT_H
39 
41 
42 #ifdef __cplusplus
43 extern "C"{
44 #endif
45 
54 #define INA226_ALERT_DEFAULT_AVG_MODE INA226_AVG_16
55 #define INA226_ALERT_DEFAULT_BUS_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS
56 #define INA226_ALERT_DEFAULT_SHUNT_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS
57 #define INA226_ALERT_DEFAULT_READY_ALERT_PIN INA226_BOOL_FALSE
58 #define INA226_ALERT_DEFAULT_ALERT_POLARITY_NORMAL INA226_ALERT_POLARITY_NORMAL
59 #define INA226_ALERT_DEFAULT_ALERT_LATCH INA226_BOOL_FALSE
68 uint8_t ina226_alert_irq_handler(void);
69 
82 uint8_t ina226_alert_init(ina226_address_t addr_pin, double r, ina226_mask_t mask, float threshold, void (*callback)(uint8_t type));
83 
91 uint8_t ina226_alert_deinit(void);
92 
103 uint8_t ina226_alert_read(float *mV, float *mA, float *mW);
104 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif
driver ina226 interface header file
ina226_mask_t
ina226 mask enumeration definition
ina226_address_t
ina226 address enumeration definition
Definition: driver_ina226.h:70
uint8_t ina226_alert_init(ina226_address_t addr_pin, double r, ina226_mask_t mask, float threshold, void(*callback)(uint8_t type))
alert example init
uint8_t ina226_alert_deinit(void)
alert example deinit
uint8_t ina226_alert_irq_handler(void)
alert irq handler
uint8_t ina226_alert_read(float *mV, float *mA, float *mW)
alert example read