Revision cf1f756b include/alld_at24c01bn-sh-b.h
include/alld_at24c01bn-sh-b.h | ||
---|---|---|
60 | 60 |
*/ |
61 | 61 |
typedef struct { |
62 | 62 |
apalI2CDriver_t* i2cd; /**< @brief The I2C Driver */ |
63 |
uint8_t addr; /**< @brief The address of the AT24C01B for I2C communication, which is defined by the wiring of the A0, A1, A2 pins */
|
|
63 |
apalI2Caddr_t addr; /**< @brief The address of the AT24C01B for I2C communication, which is defined by the wiring of the A0, A1, A2 pins */
|
|
64 | 64 |
} AT24C01BNDriver; |
65 | 65 |
|
66 | 66 |
/** |
67 | 67 |
* @brief Bitmasks for the I2C address, including the wiring of the A0, A1, A2 pins. |
68 | 68 |
*/ |
69 | 69 |
enum { |
70 |
AT24C01BN_LLD_I2C_ADDR_FIXED = 0x50u, |
|
71 |
AT24C01BN_LLD_I2C_ADDR_A0 = 0x01u, |
|
72 |
AT24C01BN_LLD_I2C_ADDR_A1 = 0x02u, |
|
73 |
AT24C01BN_LLD_I2C_ADDR_A2 = 0x04u, |
|
70 |
AT24C01BN_LLD_I2C_ADDR_FIXED = 0x0050u,
|
|
71 |
AT24C01BN_LLD_I2C_ADDR_A0 = 0x0001u,
|
|
72 |
AT24C01BN_LLD_I2C_ADDR_A1 = 0x0002u,
|
|
73 |
AT24C01BN_LLD_I2C_ADDR_A2 = 0x0004u,
|
|
74 | 74 |
}; |
75 | 75 |
|
76 | 76 |
#ifdef __cplusplus |
Also available in: Unified diff