I'm using HAL libraries for I2C communication. Below are the commands I used.
i2c_m_sync_set_slaveaddr(&I2C_0,DAC_mcp4728_ID,I2C_M_SEVEN); - for setting slave ID
i2c_m_sync_cmd_write(&I2C_0,DAC_mcp4728_VREFWRITE,TxFrame,1); - for sending register command and data.
Here TxFrame is an array so no & used.
But, only the slave ID is getting transmitted and not the next register address and frame.
Can anyone guide me what is wrong here?
P.S - this is the same I2C slave I have used previously with STM32. And its working fine there with same device ID and register address.