![]() |
nrfx 4.5.0
|
Hardware access layer for managing the MUTEX peripheral. More...
Functions | |
| NRF_STATIC_INLINE bool | nrf_mutex_lock (NRF_MUTEX_Type *p_reg, uint8_t mutex) |
| Function for locking the specified mutex. | |
| NRF_STATIC_INLINE void | nrf_mutex_unlock (NRF_MUTEX_Type *p_reg, uint8_t mutex) |
| Function for unlocking the specified mutex. | |
Hardware access layer for managing the MUTEX peripheral.
| NRF_STATIC_INLINE bool nrf_mutex_lock | ( | NRF_MUTEX_Type * | p_reg, |
| uint8_t | mutex ) |
Function for locking the specified mutex.
If the specified mutex is already locked, its state remains unchanged.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mutex | Index of the mutex to be locked. |
| true | Mutex is successfully locked. |
| false | Mutex was already locked. |
| NRF_STATIC_INLINE void nrf_mutex_unlock | ( | NRF_MUTEX_Type * | p_reg, |
| uint8_t | mutex ) |
Function for unlocking the specified mutex.
If the specified mutex is already unlocked, its state remains unchanged.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mutex | Index of the mutex to be locked. |