YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
ina219_drv Class Reference

Public Member Functions

 ina219_drv (i2c_interface &i2c, uint8_t _i2c_addr=INA219::ADDRESS)
 
void setConfig (bool reset, INA219::BG busgain, INA219::PG powergain, INA219::ADC busadc, INA219::ADC shuntadc, INA219::MODE mode)
 
void setCalibration (unsigned int maxCurrent=3200, float shuntR=0.1)
 
float getShuntVoltage ()
 
float getBusVoltage ()
 
float getCurrent ()
 

Detailed Description

Definition at line 75 of file ina219_drv.h.

Constructor & Destructor Documentation

◆ ina219_drv()

ina219_drv::ina219_drv ( i2c_interface & i2c,
uint8_t _i2c_addr = INA219::ADDRESS )

Definition at line 10 of file ina219_drv.cpp.

Member Function Documentation

◆ getBusVoltage()

float ina219_drv::getBusVoltage ( )

Definition at line 55 of file ina219_drv.cpp.

◆ getCurrent()

float ina219_drv::getCurrent ( )

Definition at line 73 of file ina219_drv.cpp.

◆ getShuntVoltage()

float ina219_drv::getShuntVoltage ( )

Definition at line 46 of file ina219_drv.cpp.

◆ setCalibration()

void ina219_drv::setCalibration ( unsigned int maxCurrent = 3200,
float shuntR = 0.1 )

Definition at line 37 of file ina219_drv.cpp.

◆ setConfig()

void ina219_drv::setConfig ( bool reset,
INA219::BG busgain,
INA219::PG powergain,
INA219::ADC busadc,
INA219::ADC shuntadc,
INA219::MODE mode )

Definition at line 16 of file ina219_drv.cpp.


The documentation for this class was generated from the following files: