![]() |
NHS31xx SW API
|
Defines required to be known and in sync between both master and slave device.
Macros | |
#define | I2C_SLAVE_ADDRESS 0x11 |
#define | I2C_MASTER_TX_SIZE 2 |
#define | I2C_SLAVE_TX_SIZE 180 |
#define I2C_SLAVE_ADDRESS 0x11 |
The 7-bit (MSBit 0) slave address of the slave device.
#define I2C_MASTER_TX_SIZE 2 |
In this example application, it is chosen to, in one I2C transaction, start with a short write, immediately followed by a longer read. The size in bytes of the short write is captured in this define.
#define I2C_SLAVE_TX_SIZE 180 |
In this example application, it is chosen to, in one I2C transaction, start with a short write, immediately followed by a longer read. The size in bytes of the longer read is captured in this define.