LibDriver INA226
Loading...
Searching...
No Matches
driver_ina226_shot.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_INA226_SHOT_H
38#define DRIVER_INA226_SHOT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
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
57
67uint8_t ina226_shot_init(ina226_address_t addr_pin, double r);
68
76uint8_t ina226_shot_deinit(void);
77
88uint8_t ina226_shot_read(float *mV, float *mA, float *mW);
89
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
driver ina226 interface header file
ina226_address_t
ina226 address enumeration definition
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