Functions#
This section provides a reference to the Crypto multithread management API functions.
Functions#
osSemaphoreId_t
sl_si91x_crypto_threadsafety_init(osSemaphoreId_t *mutex)
To initialize the crypto semaphore for a particular crypto operation.
osStatus_t
sl_si91x_crypto_mutex_acquire(osSemaphoreId_t *mutex)
To acquire the crypto semaphore for a particular crypto operation.
osStatus_t
sl_si91x_crypto_mutex_release(osSemaphoreId_t *mutex)
To release the crypto semaphore for a particular crypto operation.
Function Documentation#
sl_si91x_crypto_threadsafety_init#
osSemaphoreId_t sl_si91x_crypto_threadsafety_init (osSemaphoreId_t * mutex)
To initialize the crypto semaphore for a particular crypto operation.
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
osSemaphoreId_t * | [in] | mutex | The crypto semaphore to be initialized. |
Returns
osSemaphoreId_t Semaphore ID.
sl_si91x_crypto_mutex_acquire#
osStatus_t sl_si91x_crypto_mutex_acquire (osSemaphoreId_t * mutex)
To acquire the crypto semaphore for a particular crypto operation.
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
osSemaphoreId_t * | [in] | mutex | The crypto semaphore to be acquired. |
Returns
osStatus_t Status of the semaphore.
sl_si91x_crypto_mutex_release#
osStatus_t sl_si91x_crypto_mutex_release (osSemaphoreId_t * mutex)
To release the crypto semaphore for a particular crypto operation.
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
osSemaphoreId_t * | [in] | mutex | The crypto semaphore to be released. |
Returns
osStatus_t Status of the semaphore.