Go to the source code of this file.
|
enum | LTC2991_VOLTAGE_CHANNEL {
LTC2991_VOLTAGE_CHANNEL_1
, LTC2991_VOLTAGE_CHANNEL_2
, LTC2991_VOLTAGE_CHANNEL_3
, LTC2991_VOLTAGE_CHANNEL_4
,
LTC2991_VOLTAGE_CHANNEL_5
, LTC2991_VOLTAGE_CHANNEL_6
, LTC2991_VOLTAGE_CHANNEL_7
, LTC2991_VOLTAGE_CHANNEL_8
} |
|
enum | LTC2991_READ_OPTIONAL {
LTC2991_READ_V1_VOLTAGE = (LTC2991_READ_VOLTAGE | LTC2991_VOLTAGE_CHANNEL_1)
, LTC2991_READ_V2_VOLTAGE
, LTC2991_READ_V3_VOLTAGE
, LTC2991_READ_V4_VOLTAGE
,
LTC2991_READ_V5_VOLTAGE
, LTC2991_READ_V6_VOLTAGE
, LTC2991_READ_V7_VOLTAGE
, LTC2991_READ_V8_VOLTAGE
,
LTC2991_READ_V1_V2_TEMPERATURE = (LTC2991_READ_TEMPERATURE | LTC2991_VOLTAGE_CHANNEL_1)
, LTC2991_READ_V3_V4_TEMPERATURE = (LTC2991_READ_TEMPERATURE | LTC2991_VOLTAGE_CHANNEL_3)
, LTC2991_READ_V5_V6_TEMPERATURE = (LTC2991_READ_TEMPERATURE | LTC2991_VOLTAGE_CHANNEL_5)
, LTC2991_READ_V7_V8_TEMPERATURE = (LTC2991_READ_TEMPERATURE | LTC2991_VOLTAGE_CHANNEL_7)
} |
|
enum | LTC2991_REGISTER {
LTC2991_ENABLE_CHANNEL_REG = 0x01
, LTC2991_V1_V4_CONTROL_REG = 0x06
, LTC2991_V5_V8_CONTROL_REG
, LTC2991_VCC_TEMP_CONTROL_REG
,
LTC2991_V1_MSB_REG = 0x0A
, LTC2991_V1_LSB_REG
, LTC2991_V2_MSB_REG
, LTC2991_V2_LSB_REG
,
LTC2991_V3_MSB_REG
, LTC2991_V3_LSB_REG
, LTC2991_V4_MSB_REG
, LTC2991_V4_LSB_REG
,
LTC2991_V5_MSB_REG
, LTC2991_V5_LSB_REG
, LTC2991_V6_MSB_REG
, LTC2991_V6_LSB_REG
,
LTC2991_V7_MSB_REG
, LTC2991_V7_LSB_REG
, LTC2991_V8_MSB_REG
, LTC2991_V8_LSB_REG
} |
|
◆ LTC2991_DATA_NOT_READY_DELAY_MS
#define LTC2991_DATA_NOT_READY_DELAY_MS 10 |
◆ LTC2991_DATA_SIGN_BIT
#define LTC2991_DATA_SIGN_BIT BIT(6) |
◆ LTC2991_DATA_VALID_BIT
#define LTC2991_DATA_VALID_BIT BIT(7) |
◆ LTC2991_ENABLE_CHANNEL_V1_V2
#define LTC2991_ENABLE_CHANNEL_V1_V2 BIT(4) |
◆ LTC2991_ENABLE_CHANNEL_V3_V4
#define LTC2991_ENABLE_CHANNEL_V3_V4 BIT(5) |
◆ LTC2991_ENABLE_CHANNEL_V5_V6
#define LTC2991_ENABLE_CHANNEL_V5_V6 BIT(6) |
◆ LTC2991_ENABLE_CHANNEL_V7_V8
#define LTC2991_ENABLE_CHANNEL_V7_V8 BIT(7) |
◆ LTC2991_KEEP_DEFAULT_SETTING
#define LTC2991_KEEP_DEFAULT_SETTING -1 |
◆ LTC2991_READ_TEMPERATURE
#define LTC2991_READ_TEMPERATURE BIT(3) |
◆ LTC2991_READ_VOLTAGE
#define LTC2991_READ_VOLTAGE 0 |
◆ LTC2991_TEMPERATURE_LSB
#define LTC2991_TEMPERATURE_LSB 0.0625 |
◆ LTC2991_VOLTAGE_LSB
#define LTC2991_VOLTAGE_LSB 0.00030517578125 |
◆ LTC2991_READ_OPTIONAL
Enumerator |
---|
LTC2991_READ_V1_VOLTAGE | |
LTC2991_READ_V2_VOLTAGE | |
LTC2991_READ_V3_VOLTAGE | |
LTC2991_READ_V4_VOLTAGE | |
LTC2991_READ_V5_VOLTAGE | |
LTC2991_READ_V6_VOLTAGE | |
LTC2991_READ_V7_VOLTAGE | |
LTC2991_READ_V8_VOLTAGE | |
LTC2991_READ_V1_V2_TEMPERATURE | |
LTC2991_READ_V3_V4_TEMPERATURE | |
LTC2991_READ_V5_V6_TEMPERATURE | |
LTC2991_READ_V7_V8_TEMPERATURE | |
◆ LTC2991_REGISTER
Enumerator |
---|
LTC2991_ENABLE_CHANNEL_REG | |
LTC2991_V1_V4_CONTROL_REG | |
LTC2991_V5_V8_CONTROL_REG | |
LTC2991_VCC_TEMP_CONTROL_REG | |
LTC2991_V1_MSB_REG | |
LTC2991_V1_LSB_REG | |
LTC2991_V2_MSB_REG | |
LTC2991_V2_LSB_REG | |
LTC2991_V3_MSB_REG | |
LTC2991_V3_LSB_REG | |
LTC2991_V4_MSB_REG | |
LTC2991_V4_LSB_REG | |
LTC2991_V5_MSB_REG | |
LTC2991_V5_LSB_REG | |
LTC2991_V6_MSB_REG | |
LTC2991_V6_LSB_REG | |
LTC2991_V7_MSB_REG | |
LTC2991_V7_LSB_REG | |
LTC2991_V8_MSB_REG | |
LTC2991_V8_LSB_REG | |
◆ LTC2991_VOLTAGE_CHANNEL
Enumerator |
---|
LTC2991_VOLTAGE_CHANNEL_1 | |
LTC2991_VOLTAGE_CHANNEL_2 | |
LTC2991_VOLTAGE_CHANNEL_3 | |
LTC2991_VOLTAGE_CHANNEL_4 | |
LTC2991_VOLTAGE_CHANNEL_5 | |
LTC2991_VOLTAGE_CHANNEL_6 | |
LTC2991_VOLTAGE_CHANNEL_7 | |
LTC2991_VOLTAGE_CHANNEL_8 | |
◆ ltc2991_read_optional_to_register()
int ltc2991_read_optional_to_register |
( |
uint8_t |
read_optional, |
|
|
uint8_t * |
msb_register, |
|
|
uint8_t * |
lsb_register, |
|
|
float * |
parameter, |
|
|
uint8_t * |
channel |
|
) |
| |