![]() |
LibDriver INA226
|
ina226 example driver modules More...
Functions | |
| uint8_t | ina226_alert_irq_handler (void) |
| alert irq handler | |
| 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_read (float *mV, float *mA, float *mW) |
| alert example read | |
| uint8_t | ina226_basic_init (ina226_address_t addr_pin, double r) |
| basic example init | |
| uint8_t | ina226_basic_deinit (void) |
| basic example deinit | |
| uint8_t | ina226_basic_read (float *mV, float *mA, float *mW) |
| basic example read | |
| uint8_t | ina226_shot_init (ina226_address_t addr_pin, double r) |
| shot example init | |
| uint8_t | ina226_shot_deinit (void) |
| shot example deinit | |
| uint8_t | ina226_shot_read (float *mV, float *mA, float *mW) |
| shot example read | |
ina226 example driver modules
| #define INA226_ALERT_DEFAULT_ALERT_LATCH INA226_BOOL_FALSE |
disable alert latch
Definition at line 59 of file driver_ina226_alert.h.
| #define INA226_ALERT_DEFAULT_ALERT_POLARITY_NORMAL INA226_ALERT_POLARITY_NORMAL |
alert polarity normal
Definition at line 58 of file driver_ina226_alert.h.
| #define INA226_ALERT_DEFAULT_AVG_MODE INA226_AVG_16 |
ina226 alert example default definition
16 averages
Definition at line 54 of file driver_ina226_alert.h.
| #define INA226_ALERT_DEFAULT_BUS_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS |
bus voltage conversion time 1.1 ms
Definition at line 55 of file driver_ina226_alert.h.
| #define INA226_ALERT_DEFAULT_READY_ALERT_PIN INA226_BOOL_FALSE |
disable ready alert pin
Definition at line 57 of file driver_ina226_alert.h.
| #define INA226_ALERT_DEFAULT_SHUNT_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS |
shunt voltage conversion time 1.1 ms
Definition at line 56 of file driver_ina226_alert.h.
| #define INA226_BASIC_DEFAULT_AVG_MODE INA226_AVG_16 |
ina226 basic example default definition
16 averages
Definition at line 56 of file driver_ina226_basic.h.
| #define INA226_BASIC_DEFAULT_BUS_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS |
bus voltage conversion time 1.1 ms
Definition at line 57 of file driver_ina226_basic.h.
| #define INA226_BASIC_DEFAULT_SHUNT_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS |
shunt voltage conversion time 1.1 ms
Definition at line 58 of file driver_ina226_basic.h.
| #define INA226_SHOT_DEFAULT_AVG_MODE INA226_AVG_16 |
ina226 shot example default definition
16 averages
Definition at line 54 of file driver_ina226_shot.h.
| #define INA226_SHOT_DEFAULT_BUS_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS |
bus voltage conversion time 1.1 ms
Definition at line 55 of file driver_ina226_shot.h.
| #define INA226_SHOT_DEFAULT_SHUNT_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS |
shunt voltage conversion time 1.1 ms
Definition at line 56 of file driver_ina226_shot.h.
| uint8_t ina226_alert_deinit | ( | void | ) |
alert example deinit
Definition at line 613 of file driver_ina226_alert.c.
| 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
| [in] | addr_pin | iic address pin |
| [in] | r | reference resistor value |
| [in] | mask | set mask |
| [in] | threshold | set threshold |
| [in] | *callback | pointer to a function address |
Definition at line 70 of file driver_ina226_alert.c.
| uint8_t ina226_alert_irq_handler | ( | void | ) |
alert irq handler
Definition at line 48 of file driver_ina226_alert.c.
| uint8_t ina226_alert_read | ( | float * | mV, |
| float * | mA, | ||
| float * | mW ) |
alert example read
| [out] | *mV | pointer to a mV buffer |
| [out] | *mA | pointer to a mA buffer |
| [out] | *mW | pointer to a mW buffer |
Definition at line 576 of file driver_ina226_alert.c.
| uint8_t ina226_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 200 of file driver_ina226_basic.c.
| uint8_t ina226_basic_init | ( | ina226_address_t | addr_pin, |
| double | r ) |
basic example init
| [in] | addr_pin | iic address pin |
| [in] | r | reference resistor value |
Definition at line 50 of file driver_ina226_basic.c.
| uint8_t ina226_basic_read | ( | float * | mV, |
| float * | mA, | ||
| float * | mW ) |
basic example read
| [out] | *mV | pointer to a mV buffer |
| [out] | *mA | pointer to a mA buffer |
| [out] | *mW | pointer to a mW buffer |
Definition at line 163 of file driver_ina226_basic.c.
| uint8_t ina226_shot_deinit | ( | void | ) |
shot example deinit
Definition at line 207 of file driver_ina226_shot.c.
| uint8_t ina226_shot_init | ( | ina226_address_t | addr_pin, |
| double | r ) |
shot example init
| [in] | addr_pin | iic address pin |
| [in] | r | reference resistor value |
Definition at line 50 of file driver_ina226_shot.c.
| uint8_t ina226_shot_read | ( | float * | mV, |
| float * | mA, | ||
| float * | mW ) |
shot example read
| [out] | *mV | pointer to a mV buffer |
| [out] | *mA | pointer to a mA buffer |
| [out] | *mW | pointer to a mW buffer |
Definition at line 163 of file driver_ina226_shot.c.