LibDriver INA219
Loading...
Searching...
No Matches
driver_ina219_shot.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_INA219_SHOT_H
38#define DRIVER_INA219_SHOT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define INA219_SHOT_DEFAULT_BUS_VOLTAGE_RANGE INA219_BUS_VOLTAGE_RANGE_32V
55#define INA219_SHOT_DEFAULT_BUS_VOLTAGE_ADC_MODE INA219_ADC_MODE_12_BIT_1_SAMPLES
56#define INA219_SHOT_DEFAULT_SHUNT_VOLTAGE_ADC_MODE INA219_ADC_MODE_12_BIT_1_SAMPLES
57#define INA219_SHOT_DEFAULT_PGA INA219_PGA_320_MV
58
68uint8_t ina219_shot_init(ina219_address_t addr_pin, double r);
69
77uint8_t ina219_shot_deinit(void);
78
89uint8_t ina219_shot_read(float *mV, float *mA, float *mW);
90
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif
driver ina219 interface header file
ina219_address_t
ina219 address enumeration definition
uint8_t ina219_shot_read(float *mV, float *mA, float *mW)
shot example read
uint8_t ina219_shot_init(ina219_address_t addr_pin, double r)
shot example init
uint8_t ina219_shot_deinit(void)
shot example deinit