Revision cf1f756b include/alld_ina219.h
include/alld_ina219.h | ||
---|---|---|
32 | 32 |
* @brief I2C address masks. |
33 | 33 |
*/ |
34 | 34 |
enum { |
35 |
INA219_LLD_I2C_ADDR_FIXED = 0x40u, |
|
36 |
INA219_LLD_I2C_ADDR_A0 = 0x01u, |
|
37 |
INA219_LLD_I2C_ADDR_A1 = 0x04u, |
|
35 |
INA219_LLD_I2C_ADDR_FIXED = 0x0040u,
|
|
36 |
INA219_LLD_I2C_ADDR_A0 = 0x0001u,
|
|
37 |
INA219_LLD_I2C_ADDR_A1 = 0x0004u,
|
|
38 | 38 |
}; |
39 | 39 |
|
40 | 40 |
/** |
... | ... | |
139 | 139 |
*/ |
140 | 140 |
typedef struct { |
141 | 141 |
apalI2CDriver_t* i2cd; |
142 |
uint8_t addr; /**<The address of the INA219 for I2C communication, which is defined by the wiring of the A0 and A1 pins */
|
|
142 |
apalI2Caddr_t addr; /**<The address of the INA219 for I2C communication, which is defined by the wiring of the A0 and A1 pins */
|
|
143 | 143 |
uint16_t current_lsb_uA; |
144 | 144 |
ina219_lld_cfg_t *config; |
145 | 145 |
} INA219Driver; |
Also available in: Unified diff