NHS31xx SW API
common: defines shared between both master and slave.

Detailed Description

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
 

Macro Definition Documentation

◆ I2C_SLAVE_ADDRESS

#define I2C_SLAVE_ADDRESS   0x11

The 7-bit (MSBit 0) slave address of the slave device.

  • The master will attempt I2C communication to this address only;
  • the slave will listen to this address only.

◆ I2C_MASTER_TX_SIZE

#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.

◆ I2C_SLAVE_TX_SIZE

#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.