AnsweredAssumed Answered

I2C send_data

Question asked by aymen.bellili on Jun 6, 2016
Latest reply on Jun 6, 2016 by Clive One
hi,
I'm using stm32f103rct6 to communicate with OPT3001 sensors.
I use I2C1 for the configuration
to read data from 16bits register it's done but I have problem to send 16bits data.
I used this function when I tried to read the same register I find juste one Byte.
void I2C_SendData(I2C_TypeDef* I2Cx, uint8_t Data)
{
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  /* Write in the DR register the data to be sent */
  I2Cx->DR = Data;
}
have any one solution?
thanks

Outcomes