I2C driver - state I2C_LOCKED

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Location: Dresden, Germany
Has thanked: 10 times
Been thanked: 5 times

I2C driver - state I2C_LOCKED

Postby neums » Fri Nov 11, 2016 1:18 pm

Hi,
what is the functionality of the i2c driver state I2C_LOCKED?

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: I2C driver - state I2C_LOCKED

Postby Giovanni » Fri Nov 11, 2016 1:26 pm

Hi,

That state is reached after a communication failure timeout. It enforces a restart of the driver.

Giovanni

neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Location: Dresden, Germany
Has thanked: 10 times
Been thanked: 5 times

Re: I2C driver - state I2C_LOCKED

Postby neums » Fri Nov 11, 2016 2:03 pm

Why is this restart required?

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: I2C driver - state I2C_LOCKED

Postby Giovanni » Fri Nov 11, 2016 3:21 pm

A timeout should never happen, it is a faulty bus condition.

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 10 guests