Device driver interface for Texas Instruments INA219/INA2XX Bi-Directional CURRENT/POWER MONITOR with Two-Wire Interface. More...
Device driver interface for Texas Instruments INA219/INA2XX Bi-Directional CURRENT/POWER MONITOR with Two-Wire Interface.
Definition in file ina2xx.h.
Include dependency graph for ina2xx.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | ina2xx_params_t |
| Configuration parameters of the INA2xx driver. More... | |
| struct | ina2xx_t |
| Device descriptor for INA2XX sensors. More... | |
Typedefs | |
| typedef enum ina2xx_mode | ina2xx_mode_t |
| INA2XX possible mode settings. | |
| typedef enum ina2xx_sadc | ina2xx_sadc_t |
| Shunt ADC settings. More... | |
| typedef enum ina2xx_badc | ina2xx_badc_t |
| Bus ADC settings. More... | |
| typedef enum ina2xx_pga | ina2xx_pga_t |
| Shunt voltage measurement range (PGA settings) | |
| typedef enum ina2xx_brng | ina2xx_brng_t |
| Bus voltage measurement range. | |
| typedef enum ina2xx_i_range | ina2xx_i_range_t |
| Current measurement range. More... | |
Functions | |
| int | ina2xx_init (ina2xx_t *dev, const ina2xx_params_t *params) |
| Initialize a current sensor. More... | |
| int | ina2xx_read_shunt (const ina2xx_t *dev, int16_t *voltage) |
| Read shunt voltage in E-05 V. More... | |
| int | ina2xx_read_bus (const ina2xx_t *dev, uint16_t *voltage) |
| Read bus voltage in mV. More... | |
| int | ina2xx_read_current (const ina2xx_t *dev, int32_t *current) |
| Read shunt current in E-05 A. More... | |
| int | ina2xx_read_power (const ina2xx_t *dev, uint32_t *power) |
| Read power consumption in E-04 W. More... | |