Waits for a start condition on the bus.
enum i2c_slave_direction i2c_slave_get_direction_wait( struct i2c_slave_module *const module)
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
module |
Pointer to software module structure |
Direction of the current transfer, when in slave mode.
| Return value | Description |
|---|---|
|
I2C_SLAVE_DIRECTION_NONE |
No request from master within timeout period |
|
I2C_SLAVE_DIRECTION_READ |
Write request from master |
|
I2C_SLAVE_DIRECTION_WRITE |
Read request from master |