Defines all functions of mcuxClResource. More...
Functions | |
| mcuxClResource_Status_t | mcuxClResource_init (mcuxClResource_Context_t *pResourceCtx, mcuxClResource_MutexAcquire_Callback_t pMutexAcquire, mcuxClResource_MutexRelease_Callback_t pMutexRelease) |
| Resource context initialization function. | |
| mcuxClResource_Status_t | mcuxClResource_handle_interrupt (const mcuxClResource_Context_t *pResourceCtx, mcuxClResource_Interrupt_t interrupt) |
| Resource interrupt handler. | |
Defines all functions of mcuxClResource.
| mcuxClResource_Status_t mcuxClResource_init | ( | mcuxClResource_Context_t * | pResourceCtx, |
| mcuxClResource_MutexAcquire_Callback_t | pMutexAcquire, | ||
| mcuxClResource_MutexRelease_Callback_t | pMutexRelease ) |
Resource context initialization function.
This function performs the initialization of the resource context. There should generally only be one (global) resource context.
| pResourceCtx | Pointer to the global resource context |
| pMutexAcquire | Callback to be used for acquiring a mutex. |
| pMutexRelease | Callback to be used for releasing a mutex. |
| MCUXCLRESOURCE_STATUS_OK | Resource context has been initialized successfully |
| MCUXCLRESOURCE_STATUS_ERROR | Error occurred during resource initializing |
| mcuxClResource_Status_t mcuxClResource_handle_interrupt | ( | const mcuxClResource_Context_t * | pResourceCtx, |
| mcuxClResource_Interrupt_t | interrupt ) |
Resource interrupt handler.
This function performs the interrupt handling for the given resource to wrap-up an operation after the interrupt of the resource was triggered. The user callback, which is installed in the session that performed the non-blocking operation, will be triggered by this function if the crypto operation finished successfully.
| pResourceCtx | Pointer to the global resource context |
| interrupt | The interrupt to be handled. |
| MCUXCLRESOURCE_STATUS_OK | Resource operation successful |
| MCUXCLRESOURCE_STATUS_ERROR | Error occurred during Resource operation |