nRF5 SDK v16.0.0
Functions
CryptoCell PAL mutex APIs

Functions

SaSiStatus SaSi_PalMutexCreate (SaSi_PalMutex *pMutexId)
 This function purpose is to create a mutex. More...
 
SaSiStatus SaSi_PalMutexDestroy (SaSi_PalMutex *pMutexId)
 This function purpose is to destroy a mutex. More...
 
SaSiStatus SaSi_PalMutexLock (SaSi_PalMutex *pMutexId, uint32_t aTimeOut)
 This function purpose is to Wait for Mutex with aTimeOut. aTimeOut is specified in milliseconds (SASI_INFINITE is blocking). More...
 
SaSiStatus SaSi_PalMutexUnlock (SaSi_PalMutex *pMutexId)
 This function purpose is to release the mutex. More...
 

Detailed Description

Function Documentation

SaSiStatus SaSi_PalMutexCreate ( SaSi_PalMutex *  pMutexId)

This function purpose is to create a mutex.

Returns
Zero on success.
A non-zero value on failure.
Parameters
[out]pMutexIdPointer to created mutex handle.
SaSiStatus SaSi_PalMutexDestroy ( SaSi_PalMutex *  pMutexId)

This function purpose is to destroy a mutex.

Returns
Zero on success.
A non-zero value on failure.
Parameters
[in]pMutexIdPointer to mutex handle.
SaSiStatus SaSi_PalMutexLock ( SaSi_PalMutex *  pMutexId,
uint32_t  aTimeOut 
)

This function purpose is to Wait for Mutex with aTimeOut. aTimeOut is specified in milliseconds (SASI_INFINITE is blocking).

Returns
Zero on success.
A non-zero value on failure.
Parameters
[in]pMutexIdPointer to Mutex handle.
[in]aTimeOutTimeout in mSec, or SASI_INFINITE.
SaSiStatus SaSi_PalMutexUnlock ( SaSi_PalMutex *  pMutexId)

This function purpose is to release the mutex.

Returns
Zero on success.
A non-zero value on failure.
Parameters
[in]pMutexIdPointer to Mutex handle.

Documentation feedback | Developer Zone | Subscribe | Updated