Go to the source code of this file.
◆ INA23X_ALERT_FUNCTION_FLAG
#define INA23X_ALERT_FUNCTION_FLAG BIT(4) |
◆ INA23X_ALERT_LATCH_ENABLE
#define INA23X_ALERT_LATCH_ENABLE BIT(0) |
◆ INA23X_ALERT_POLARITY
#define INA23X_ALERT_POLARITY BIT(1) |
◆ INA23X_AVG_MODE_1
#define INA23X_AVG_MODE_1 0x00 |
◆ INA23X_AVG_MODE_1024
#define INA23X_AVG_MODE_1024 0x07 |
◆ INA23X_AVG_MODE_128
#define INA23X_AVG_MODE_128 0x04 |
◆ INA23X_AVG_MODE_16
#define INA23X_AVG_MODE_16 0x02 |
◆ INA23X_AVG_MODE_256
#define INA23X_AVG_MODE_256 0x05 |
◆ INA23X_AVG_MODE_4
#define INA23X_AVG_MODE_4 0x01 |
◆ INA23X_AVG_MODE_512
#define INA23X_AVG_MODE_512 0x06 |
◆ INA23X_AVG_MODE_64
#define INA23X_AVG_MODE_64 0x03 |
◆ INA23X_BUS_VOLTAGE_OVER
#define INA23X_BUS_VOLTAGE_OVER BIT(13) |
◆ INA23X_BUS_VOLTAGE_UNDER
#define INA23X_BUS_VOLTAGE_UNDER BIT(12) |
◆ INA23X_CONFIG
#define INA23X_CONFIG |
( |
|
mode, |
|
|
|
svct, |
|
|
|
bvct, |
|
|
|
avg |
|
) |
| (((avg) << 9) | ((bvct) << 6) | ((svct) << 3) | (mode)) |
Macro for creating the INA23X configuration value.
- Parameters
-
mode | Operating mode. |
svct | Conversion time for shunt voltage. |
bvct | Conversion time for bus voltage. |
avg | Averaging mode. |
◆ INA23X_CONV_TIME_1100
#define INA23X_CONV_TIME_1100 0x04 |
◆ INA23X_CONV_TIME_140
#define INA23X_CONV_TIME_140 0x00 |
◆ INA23X_CONV_TIME_204
#define INA23X_CONV_TIME_204 0x01 |
◆ INA23X_CONV_TIME_2116
#define INA23X_CONV_TIME_2116 0x05 |
◆ INA23X_CONV_TIME_332
#define INA23X_CONV_TIME_332 0x02 |
◆ INA23X_CONV_TIME_4156
#define INA23X_CONV_TIME_4156 0x06 |
◆ INA23X_CONV_TIME_588
#define INA23X_CONV_TIME_588 0x03 |
◆ INA23X_CONV_TIME_8244
#define INA23X_CONV_TIME_8244 0x07 |
◆ INA23X_CONVERSION_READY
#define INA23X_CONVERSION_READY BIT(10) |
◆ INA23X_CONVERSION_READY_FLAG
#define INA23X_CONVERSION_READY_FLAG BIT(3) |
◆ INA23X_MATH_OVERFLOW_FLAG
#define INA23X_MATH_OVERFLOW_FLAG BIT(2) |
◆ INA23X_OPER_MODE_BUS_VOLTAGE_CONT
#define INA23X_OPER_MODE_BUS_VOLTAGE_CONT 0x06 |
◆ INA23X_OPER_MODE_BUS_VOLTAGE_TRIG
#define INA23X_OPER_MODE_BUS_VOLTAGE_TRIG 0x02 |
◆ INA23X_OPER_MODE_POWER_DOWN
#define INA23X_OPER_MODE_POWER_DOWN 0x00 |
◆ INA23X_OPER_MODE_SHUNT_BUS_VOLTAGE_CONT
#define INA23X_OPER_MODE_SHUNT_BUS_VOLTAGE_CONT 0x07 |
◆ INA23X_OPER_MODE_SHUNT_BUS_VOLTAGE_TRIG
#define INA23X_OPER_MODE_SHUNT_BUS_VOLTAGE_TRIG 0x03 |
◆ INA23X_OPER_MODE_SHUNT_VOLTAGE_CONT
#define INA23X_OPER_MODE_SHUNT_VOLTAGE_CONT 0x05 |
◆ INA23X_OPER_MODE_SHUNT_VOLTAGE_TRIG
#define INA23X_OPER_MODE_SHUNT_VOLTAGE_TRIG 0x01 |
◆ INA23X_OVER_LIMIT_POWER
#define INA23X_OVER_LIMIT_POWER BIT(11) |
◆ INA23X_SHUNT_VOLTAGE_OVER
#define INA23X_SHUNT_VOLTAGE_OVER BIT(15) |
◆ INA23X_SHUNT_VOLTAGE_UNDER
#define INA23X_SHUNT_VOLTAGE_UNDER BIT(14) |