Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Nordic CRACEN peripheral

Nordic CRACEN peripheral. More...

Functions

int nordic_cracen_acquire (const struct device *dev, k_timeout_t timeout)
 Acquire exclusive access to the CRACEN.
void nordic_cracen_release (const struct device *dev)
 Release access to the CRACEN.

Detailed Description

Nordic CRACEN peripheral.

Function Documentation

◆ nordic_cracen_acquire()

int nordic_cracen_acquire ( const struct device * dev,
k_timeout_t timeout )

#include <zephyr/drivers/misc/nordic_cracen/nordic_cracen.h>

Acquire exclusive access to the CRACEN.

The synchronisation mechanism is selected with Kconfig:

Access is not recursive, nordic_cracen_release must be called before the CRACEN is acquired again.

Power for the individual CRACEN modules is managed by the nrfx CRACEN library around each hardware operation.

Parameters
devCRACEN device
timeoutTime to wait for the CRACEN to become available
Return values
0on success
-EBUSYCRACEN is in use and timeout is K_NO_WAIT
-EAGAINWaiting for the CRACEN timed out

◆ nordic_cracen_release()

void nordic_cracen_release ( const struct device * dev)

#include <zephyr/drivers/misc/nordic_cracen/nordic_cracen.h>

Release access to the CRACEN.

Parameters
devCRACEN device