Loading...
Searching...
No Matches

INA3221 device parameters. More...

Detailed Description

INA3221 device parameters.

Definition at line 253 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. More...
 
      gpio_t   pin_crit 
 Critical alert pin, becomes configured as input. More...
 
      gpio_t   pin_tc 
 Timing control alert pin, becomes configured as input. More...
 
      gpio_t   pin_pv 
 Power valid alert pin, becomes configured as input. More...
 
   }   pins 
 Struct of alert pins.
 
   struct { 
 
      gpio_t   alert_pins [INA3221_NUM_ALERTS
 Array to access alert pins via an index. More...
 
   }   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 in mOhm for each channel.
 

Field Documentation

◆ addr

uint8_t ina3221_params_t::addr

I2C address.

Definition at line 255 of file ina3221.h.

◆ alert_pins

gpio_t ina3221_params_t::alert_pins[INA3221_NUM_ALERTS]

Array to access alert pins via an index.

Definition at line 264 of file ina3221.h.

◆ config

uint16_t ina3221_params_t::config

Configuration.

Definition at line 273 of file ina3221.h.

◆ gpio_config

uint8_t ina3221_params_t::gpio_config

Configure pull up resistors for gpio pins.

Definition at line 272 of file ina3221.h.

◆ i2c

i2c_t ina3221_params_t::i2c

I2C bus.

Definition at line 254 of file ina3221.h.

◆ pin_crit

gpio_t ina3221_params_t::pin_crit

Critical alert pin, becomes configured as input.

Definition at line 259 of file ina3221.h.

◆ pin_pv

gpio_t ina3221_params_t::pin_pv

Power valid alert pin, becomes configured as input.

Definition at line 261 of file ina3221.h.

◆ pin_tc

gpio_t ina3221_params_t::pin_tc

Timing control alert pin, becomes configured as input.

Definition at line 260 of file ina3221.h.

◆ pin_warn

gpio_t ina3221_params_t::pin_warn

Warning alert pin, becomes configured as input.

Definition at line 258 of file ina3221.h.

◆ rshunt_mohm

uint16_t ina3221_params_t::rshunt_mohm[INA3221_NUM_CH]

Shunt resistances in mOhm for each channel.

Definition at line 274 of file ina3221.h.


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