![]() |
INA219 Arduino Library by Soldered 1.0.0
This is a library for the INA219 easyC sensor Module
|
#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 |
| bool INA219::begin | ( | uint8_t | address = INA219_ADDRESS | ) |
| bool INA219::calibrate | ( | float | rShuntValue = 0.1, |
| float | iMaxExcepted = 2 ) |
| bool INA219::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 ) |
| ina219_busRes_t INA219::getBusRes | ( | void | ) |
| ina219_gain_t INA219::getGain | ( | void | ) |
| float INA219::getMaxCurrent | ( | void | ) |
| float INA219::getMaxPossibleCurrent | ( | void | ) |
| float INA219::getMaxPower | ( | void | ) |
| float INA219::getMaxShuntVoltage | ( | void | ) |
| ina219_mode_t INA219::getMode | ( | void | ) |
| ina219_range_t INA219::getRange | ( | void | ) |
| ina219_shuntRes_t INA219::getShuntRes | ( | void | ) |
| float INA219::readBusPower | ( | void | ) |
| float INA219::readBusVoltage | ( | void | ) |
|
private |
| float INA219::readShuntCurrent | ( | void | ) |
| float INA219::readShuntVoltage | ( | void | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |