AES Device Interface Functions More...
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_base.h"
Go to the source code of this file.
Data Structures | |
struct | dif_aes |
A handle to aes. More... | |
Typedefs | |
typedef struct dif_aes | dif_aes_t |
A handle to aes. More... | |
typedef enum dif_aes_alert | dif_aes_alert_t |
A aes alert type. | |
Enumerations | |
enum | dif_aes_alert { kDifAesAlertRecovCtrlUpdateErr = 0, kDifAesAlertFatalFault = 1 } |
A aes alert type. More... | |
Functions | |
OT_WARN_UNUSED_RESULT dif_result_t | dif_aes_init (mmio_region_t base_addr, dif_aes_t *aes) |
Creates a new handle for a(n) aes peripheral. More... | |
OT_WARN_UNUSED_RESULT dif_result_t | dif_aes_alert_force (const dif_aes_t *aes, dif_aes_alert_t alert) |
Forces a particular alert, causing it to be escalated as if the hardware had raised it. More... | |
AES Device Interface Functions
Definition in file dif_aes_autogen.h.
struct dif_aes |
A handle to aes.
This type should be treated as opaque by users.
Definition at line 32 of file dif_aes_autogen.h.
Data Fields | ||
---|---|---|
mmio_region_t | base_addr | The base address for the aes hardware registers. |
enum dif_aes_alert |
A aes alert type.
Definition at line 54 of file dif_aes_autogen.h.
OT_WARN_UNUSED_RESULT dif_result_t dif_aes_alert_force | ( | const dif_aes_t * | aes, |
dif_aes_alert_t | alert | ||
) |
Forces a particular alert, causing it to be escalated as if the hardware had raised it.
aes | A aes handle. |
alert | The alert to force. |
Definition at line 27 of file dif_aes_autogen.c.
OT_WARN_UNUSED_RESULT dif_result_t dif_aes_init | ( | mmio_region_t | base_addr, |
dif_aes_t * | aes | ||
) |
Creates a new handle for a(n) aes peripheral.
This function does not actuate the hardware.
base_addr | The MMIO base address of the aes peripheral. | |
[out] | aes | Out param for the initialized handle. |
Definition at line 17 of file dif_aes_autogen.c.