I have a MCU (nucleo64 L476RG), connected with I2C, and I2C is connected with DS2482-100 (Single-Channel 1-Wire Master), then to a DS28EC20 (20Kb 1-Wire EEPROM). I create project from stm32cubeMX and try to receive data from DS28EC20, there are two functions:
- Receive in master mode an amount of data in blocking mode using @ref HAL_I2C_Master_Receive()
- Read an amount of data in blocking mode from a specific memory address using @ref HAL_I2C_Mem_Read()
which one I should use? somebody mentions: "HAL_I2C_Master_Receive() used to communicate with those devices that do not have secondary address" so in my situation, does my I2C have a secondary address for DS28EC20?