INA3221 device parameters.
More...
INA3221 device parameters.
Definition at line 252 of file ina3221.h.
#include <ina3221.h>
|
| 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.
|
| |
◆ addr
| uint8_t ina3221_params_t::addr |
◆ alert_pins
Array to access alert pins via an index.
Definition at line 263 of file ina3221.h.
◆ config
| uint16_t ina3221_params_t::config |
◆ gpio_config
| uint8_t ina3221_params_t::gpio_config |
Configure pull up resistors for gpio pins.
Definition at line 271 of file ina3221.h.
◆ i2c
| i2c_t ina3221_params_t::i2c |
◆ pin_crit
| gpio_t ina3221_params_t::pin_crit |
Critical alert pin, becomes configured as input.
Definition at line 258 of file ina3221.h.
◆ pin_pv
| gpio_t ina3221_params_t::pin_pv |
Power valid alert pin, becomes configured as input.
Definition at line 260 of file ina3221.h.
◆ pin_tc
| gpio_t ina3221_params_t::pin_tc |
Timing control alert pin, becomes configured as input.
Definition at line 259 of file ina3221.h.
◆ pin_warn
| gpio_t ina3221_params_t::pin_warn |
Warning alert pin, becomes configured as input.
Definition at line 257 of file ina3221.h.
◆ rshunt_mohm
Shunt resistances in mOhm for each channel.
Definition at line 273 of file ina3221.h.
The documentation for this struct was generated from the following file: