Skip to main content
SZhan.5
Visitor II
November 22, 2018
Question

How to get funciont "hal_i2c_isdeviceready()" in LL library?

  • November 22, 2018
  • 3 replies
  • 1014 views

Hi,

I am working on BlueNRG-2 and I need a funcion "hal_i2c_isdeviceready()" to confirm NFC eeprom IIC ready. In ST BlueNRG-2 demo, it used LL library of IIC.

Could you give me some demo like "hal_i2c_isdeviceready()" in LL library.

Thanks a lot.

This topic has been closed for replies.

3 replies

Nikolay Brinken
Associate III
November 22, 2018
  1. Before START check LL_I2C_IsActiveFlag_BUSY(I2Cx)
  2. Before TRANSMIT BYTE check LL_I2C_IsActiveFlag_TXE(I2Cx)
  3. Before RESTART check LL_I2C_IsActiveFlag_TC(I2Cx)
  4. Before RECEIVE BYTE check LL_I2C_IsActiveFlag_RXNE(I2Cx)
  5. Before STOP AFTER TRANSMITTED check I2C_CheckEvent(I2Cx, I2C_EVENT_MASTER_BYTE_TRANSMITTED)
  6. Before STOP AFTER RECEIVED check I2C_CheckEvent(I2Cx, I2C_EVENT_MASTER_BYTE_RECEIVED)
Nikolay Brinken
Associate III
November 22, 2018

points 5 and 6 are wrong

Associate III
January 27, 2025

@SZhan.5 
Did you find the LL solution for the above HAL function and test it?Please put it in the forum to use by others.
Regards