INA220 interface implementation.
More...
#include "FreeRTOS.h"
#include "task.h"
#include "port.h"
#include "sdr.h"
#include "task_priorities.h"
#include "i2c.h"
#include "i2c_mapping.h"
#include "ina220.h"
#include "fpga_spi.h"
#include "fru.h"
INA220 interface implementation.
- Author
- Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br, LNLS
◆ ina220_calibrate()
◆ ina220_config()
◆ ina220_init()
void ina220_init |
( |
void | | ) |
|
◆ ina220_readall()
◆ ina220_readvalue()
Bool ina220_readvalue |
( |
ina220_data_t * | data, |
|
|
uint8_t | reg, |
|
|
uint16_t * | read ) |
◆ vTaskINA220()
void vTaskINA220 |
( |
void * | Parameters | ) |
|
◆ ina220_cfg
Initial value:= {
.calibration_factor = 40960000,
.calibration_reg = 0xA000,
.shunt_div = 100,
.bus_voltage_shift = 3,
.bus_voltage_lsb = 4,
.power_lsb = 20
}
#define INA220_PGA_GAIN_40MV
Definition ina220.h:121
#define INA220_REGISTERS
INA220 Register Count.
Definition ina220.h:114
#define INA220_MODE_SHUNT_BUS_CONT
Definition ina220.h:148
#define INA220_RES_SAMPLES_12BIT
Definition ina220.h:130
#define INA220_16V_SCALE_RANGE
Definition ina220.h:117
◆ vTaskINA220_Handle
TaskHandle_t vTaskINA220_Handle |