LibDriver INA226  1.0.0
INA226 full-featured driver
driver_ina226_shot.h
Go to the documentation of this file.
1 
37 #ifndef DRIVER_INA226_SHOT_H
38 #define DRIVER_INA226_SHOT_H
39 
41 
42 #ifdef __cplusplus
43 extern "C"{
44 #endif
45 
54 #define INA226_SHOT_DEFAULT_AVG_MODE INA226_AVG_16
55 #define INA226_SHOT_DEFAULT_BUS_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS
56 #define INA226_SHOT_DEFAULT_SHUNT_VOLTAGE_CONVERSION_TIME INA226_CONVERSION_TIME_1P1_MS
67 uint8_t ina226_shot_init(ina226_address_t addr_pin, double r);
68 
76 uint8_t ina226_shot_deinit(void);
77 
88 uint8_t ina226_shot_read(float *mV, float *mA, float *mW);
89 
94 #ifdef __cplusplus
95 }
96 #endif
97 
98 #endif
driver ina226 interface header file
ina226_address_t
ina226 address enumeration definition
Definition: driver_ina226.h:70
uint8_t ina226_shot_read(float *mV, float *mA, float *mW)
shot example read
uint8_t ina226_shot_deinit(void)
shot example deinit
uint8_t ina226_shot_init(ina226_address_t addr_pin, double r)
shot example init