nrfxlib API 0.1.0
|
The nrf_cc3xx_platform_mutex APIs provides RTOS integration for mutex usage in nrf_cc3xx_platform and dependent libraries. More...
Data Structures | |
struct | nrf_cc3xx_platform_mutex_t |
Type definition of architecture neutral mutex type. More... | |
struct | nrf_cc3xx_platform_mutex_apis_t |
Type definition of structure holding platform mutex APIs. More... | |
struct | nrf_cc3xx_platform_mutexes_t |
Type definition of structure to platform hw mutexes. More... | |
Macros | |
#define | NRF_CC3XX_PLATFORM_MUTEX_MASK_INVALID (0xA95C5F2C) |
#define | NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_VALID (0x3A<<0) |
#define | NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_ALLOCATED (0x3A<<6) |
#define | NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_ATOMIC (0x3A<<12) |
#define | NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_HW_MUTEX (0x3A<<18) |
#define | NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_INTERNAL_MUTEX (0x3A<<24) |
Typedefs | |
typedef void(* | nrf_cc3xx_platform_mutex_init_fn_t) (nrf_cc3xx_platform_mutex_t *mutex) |
Type definition of function pointer to initialize a mutex. | |
typedef void(* | nrf_cc3xx_platform_mutex_free_fn_t) (nrf_cc3xx_platform_mutex_t *mutex) |
Type definition of function pointer to free a mutex. | |
typedef int(* | nrf_cc3xx_platform_mutex_lock_fn_t) (nrf_cc3xx_platform_mutex_t *mutex) |
Type definition of function pointer to lock a mutex. | |
typedef int(* | nrf_cc3xx_platform_mutex_unlock_fn_t) (nrf_cc3xx_platform_mutex_t *mutex) |
Type definition of function pointer to unlock a mutex. | |
Functions | |
void | nrf_cc3xx_platform_set_mutexes (nrf_cc3xx_platform_mutex_apis_t const *const apis, nrf_cc3xx_platform_mutexes_t const *const mutexes) |
Function to set platform mutex APIs and mutexes. | |
void | nrf_cc3xx_platform_mutex_init (void) |
Function to initialize RTOS thread-safe mutexes. | |
Variables | |
nrf_cc3xx_platform_mutex_apis_t | platform_mutex_apis |
External reference to structure holding the currently set platform mutexe APIs. | |
nrf_cc3xx_platform_mutexes_t | platform_mutexes |
External reference to currently set platform hw mutexes. | |
The nrf_cc3xx_platform_mutex APIs provides RTOS integration for mutex usage in nrf_cc3xx_platform and dependent libraries.