ina3221_params_t Struct Reference

INA3221 device parameters. More...

Detailed Description

INA3221 device parameters.

Definition at line 230 of file ina3221.h.

#include <ina3221.h>

Data Fields

i2c_t i2c
 I2C bus.
 
uint8_t addr
 I2C address.
 
union {
   struct {
      gpio_t   pin_warn
 Warning alert pin, becomes configured as input.
 
      gpio_t   pin_crit
 Critical alert pin, becomes configured as input.
 
      gpio_t   pin_tc
 Timing control alert pin, becomes configured as input.
 
      gpio_t   pin_pv
 Power valid alert pin, becomes configured as input.
 
   }   pins
 Struct of alert pins.
 
   struct {
      gpio_t   alert_pins [INA3221_NUM_ALERTS]
 Array to access alert pins via an index.
 
   }   apins
 Struct of array of alert pins.
 
upins
 Union of alert pins as array and as single members.
 
uint8_t gpio_config
 Configure pull up resistors for gpio pins.
 
uint16_t config
 Configuration.
 
uint16_t rshunt_mohm [INA3221_NUM_CH]
 Shunt resistances im mOhm for each channel.
 

The documentation for this struct was generated from the following file: