LibDriver INA226  1.0.0
INA226 full-featured driver
driver_ina226_alert.h File Reference

Go to the source code of this file.

Macros

#define INA226_ALERT_DEFAULT_AVG_MODE   INA226_AVG_16
 ina226 alert example default definition More...
 
#define INA226_ALERT_DEFAULT_BUS_VOLTAGE_CONVERSION_TIME   INA226_CONVERSION_TIME_1P1_MS
 
#define INA226_ALERT_DEFAULT_SHUNT_VOLTAGE_CONVERSION_TIME   INA226_CONVERSION_TIME_1P1_MS
 
#define INA226_ALERT_DEFAULT_READY_ALERT_PIN   INA226_BOOL_FALSE
 
#define INA226_ALERT_DEFAULT_ALERT_POLARITY_NORMAL   INA226_ALERT_POLARITY_NORMAL
 
#define INA226_ALERT_DEFAULT_ALERT_LATCH   INA226_BOOL_FALSE
 

Functions

uint8_t ina226_alert_irq_handler (void)
 alert irq handler More...
 
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 More...
 
uint8_t ina226_alert_deinit (void)
 alert example deinit More...
 
uint8_t ina226_alert_read (float *mV, float *mA, float *mW)
 alert example read More...