INA219 Arduino Library by Soldered 1.0.0
This is a library for the INA219 easyC sensor Module
Loading...
Searching...
No Matches
INA219 Class Reference

#include <INA219.h>

Public Member Functions

bool begin (uint8_t address=INA219_ADDRESS)
 
bool configure (ina219_range_t range=INA219_RANGE_32V, ina219_gain_t gain=INA219_GAIN_320MV, ina219_busRes_t busRes=INA219_BUS_RES_12BIT, ina219_shuntRes_t shuntRes=INA219_SHUNT_RES_12BIT_1S, ina219_mode_t mode=INA219_MODE_SHUNT_BUS_CONT)
 
bool calibrate (float rShuntValue=0.1, float iMaxExcepted=2)
 
ina219_range_t getRange (void)
 
ina219_gain_t getGain (void)
 
ina219_busRes_t getBusRes (void)
 
ina219_shuntRes_t getShuntRes (void)
 
ina219_mode_t getMode (void)
 
float readShuntCurrent (void)
 
float readShuntVoltage (void)
 
float readBusPower (void)
 
float readBusVoltage (void)
 
float getMaxPossibleCurrent (void)
 
float getMaxCurrent (void)
 
float getMaxShuntVoltage (void)
 
float getMaxPower (void)
 

Private Member Functions

void writeRegister16 (uint8_t reg, uint16_t val)
 
int16_t readRegister16 (uint8_t reg)
 

Private Attributes

int8_t inaAddress
 
float currentLSB
 
float powerLSB
 
float vShuntMax
 
float vBusMax
 
float rShunt
 

Member Function Documentation

◆ begin()

bool INA219::begin ( uint8_t address = INA219_ADDRESS)

◆ calibrate()

bool INA219::calibrate ( float rShuntValue = 0.1,
float iMaxExcepted = 2 )

◆ configure()

◆ getBusRes()

ina219_busRes_t INA219::getBusRes ( void )

◆ getGain()

ina219_gain_t INA219::getGain ( void )

◆ getMaxCurrent()

float INA219::getMaxCurrent ( void )

◆ getMaxPossibleCurrent()

float INA219::getMaxPossibleCurrent ( void )

◆ getMaxPower()

float INA219::getMaxPower ( void )

◆ getMaxShuntVoltage()

float INA219::getMaxShuntVoltage ( void )

◆ getMode()

ina219_mode_t INA219::getMode ( void )

◆ getRange()

ina219_range_t INA219::getRange ( void )

◆ getShuntRes()

ina219_shuntRes_t INA219::getShuntRes ( void )

◆ readBusPower()

float INA219::readBusPower ( void )

◆ readBusVoltage()

float INA219::readBusVoltage ( void )

◆ readRegister16()

int16_t INA219::readRegister16 ( uint8_t reg)
private

◆ readShuntCurrent()

float INA219::readShuntCurrent ( void )

◆ readShuntVoltage()

float INA219::readShuntVoltage ( void )

◆ writeRegister16()

void INA219::writeRegister16 ( uint8_t reg,
uint16_t val )
private

Member Data Documentation

◆ currentLSB

float INA219::currentLSB
private

◆ inaAddress

int8_t INA219::inaAddress
private

◆ powerLSB

float INA219::powerLSB
private

◆ rShunt

float INA219::rShunt
private

◆ vBusMax

float INA219::vBusMax
private

◆ vShuntMax

float INA219::vShuntMax
private

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