AnsweredAssumed Answered

I2C Write Data to Slave Device

Question asked by steve feng on Nov 24, 2017

Hi everyone!

 

 

I am using the I2C to write some data to  two slave devices

this two devices need to drived by these imformation

 

The Board is STM32F429 discovery

 

the function I choose:

HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)

the full code is in the ZIP file

 

I'm not sure this function can be use in these project,have anybody could give me some advice?

 

the datasheet show is device need to write address,regiter address,data

Attachments

Outcomes