I2C driver - state I2C_LOCKED

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

I2C driver - state I2C_LOCKED

Post by neums »

Hi,
what is the functionality of the i2c driver state I2C_LOCKED?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: I2C driver - state I2C_LOCKED

Post by Giovanni »

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
Has thanked: 10 times
Been thanked: 5 times

Re: I2C driver - state I2C_LOCKED

Post by neums »

Why is this restart required?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: I2C driver - state I2C_LOCKED

Post by Giovanni »

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

Giovanni
Post Reply