openMMC
Open Source Modular MMC for AMCs
|
Definitions for INA3221 Current/Voltage Sensor. More...
Go to the source code of this file.
Data Structures | |
union | ina3221_config_reg_t |
struct | ina3221_config_t |
struct | ina3221_data_t |
Functions | |
uint8_t | ina3221_read_reg (ina3221_data_t *data, uint8_t reg, uint16_t *read) |
uint8_t | ina3221_read_voltages (ina3221_data_t *data) |
void | ina3221_init (void) |
void | vTaskINA3221 (void *Parameters) |
Variables | |
TaskHandle_t | vTaskINA3221_Handle |
Definitions for INA3221 Current/Voltage Sensor.
#define INA3221_CHANNEL_1 0 |
#define INA3221_CHANNEL_2 1 |
#define INA3221_CHANNEL_3 2 |
#define INA3221_MAX_DELAY 10 /* worst case delay in ms */ |
#define INA3221_MODE_BUS_CONT 0x6 |
#define INA3221_MODE_BUS_TRIG 0x2 |
#define INA3221_MODE_POWER_DOWN 0x0 |
#define INA3221_MODE_SHUNT_BUS_CONT 0x7 |
#define INA3221_MODE_SHUNT_BUS_TRIG 0x3 |
#define INA3221_MODE_SHUNT_CONT 0x5 |
#define INA3221_MODE_SHUNT_TRIG 0x1 |
#define INA3221_RSHUNT_DEFAULT 2 |
#define INA3221_UPDATE_RATE 100 |
#define INA3221_VOLTAGE_REGISTERS 6 |
INA3221 Register Count.
#define MAX_INA3221_COUNT 6 |
void ina3221_init | ( | void | ) |
uint8_t ina3221_read_reg | ( | ina3221_data_t * | data, |
uint8_t | reg, | ||
uint16_t * | read ) |
uint8_t ina3221_read_voltages | ( | ina3221_data_t * | data | ) |
void vTaskINA3221 | ( | void * | Parameters | ) |
|
extern |