Go to the source code of this file.
◆ i2c_nrfx_twim_exclusive_access_acquire()
| int i2c_nrfx_twim_exclusive_access_acquire |
( |
const struct device * |
dev, |
|
|
k_timeout_t |
timeout |
|
) |
| |
Acquires exclusive access to the i2c bus controller.
- Parameters
-
| dev | Pointer to the device structure for an I2C controller driver configured in controller mode. |
| timeout | Timeout for waiting to acquire exclusive access. |
- Return values
-
| 0 | If successful. |
| -EBUSY | Returned without waiting. |
| -EAGAIN | Waiting period timed out, or the underlying semaphore was reset during the waiting period. |
◆ i2c_nrfx_twim_exclusive_access_release()
| void i2c_nrfx_twim_exclusive_access_release |
( |
const struct device * |
dev | ) |
|
Releases exclusive access to the i2c bus controller.
- Parameters
-