ROM Controller Device Interface Functions More...
#include <stdint.h>
#include "rom_ctrl_regs.h"
#include "sw/device/lib/dif/autogen/dif_rom_ctrl_autogen.h"
Go to the source code of this file.
Data Structures | |
struct | dif_rom_ctrl_digest |
A typed representation of the ROM digest. More... | |
Typedefs | |
typedef enum dif_rom_ctrl_fatal_alert_cause | dif_rom_ctrl_fatal_alert_cause_t |
A fatal alert cause error. More... | |
typedef uint32_t | dif_rom_ctrl_fatal_alert_causes_t |
A set of fatal alert cause errors. | |
typedef struct dif_rom_ctrl_digest | dif_rom_ctrl_digest_t |
A typed representation of the ROM digest. | |
Enumerations | |
enum | dif_rom_ctrl_fatal_alert_cause { kDifRomCtrlFatalAlertCauseNoError = 0, kDifRomCtrlFatalAlertCauseCheckerError, kDifRomCtrlFatalAlertCauseIntegrityError } |
A fatal alert cause error. More... | |
Functions | |
OT_WARN_UNUSED_RESULT dif_result_t | dif_rom_ctrl_get_fatal_alert_cause (const dif_rom_ctrl_t *rom_ctrl, dif_rom_ctrl_fatal_alert_causes_t *alert_causes) |
Reads the fatal alert cause bits of the ROM Controller. More... | |
OT_WARN_UNUSED_RESULT dif_result_t | dif_rom_ctrl_get_digest (const dif_rom_ctrl_t *rom_ctrl, dif_rom_ctrl_digest_t *digest) |
Reads the (KMAC computed) ROM digest. More... | |
OT_WARN_UNUSED_RESULT dif_result_t | dif_rom_ctrl_get_expected_digest (const dif_rom_ctrl_t *rom_ctrl, dif_rom_ctrl_digest_t *expected_digest) |
Reads the expected ROM digest contained in the top eight words of ROM. More... | |
ROM Controller Device Interface Functions
Definition in file dif_rom_ctrl.h.
struct dif_rom_ctrl_digest |
A typed representation of the ROM digest.
Definition at line 53 of file dif_rom_ctrl.h.
Data Fields | ||
---|---|---|
uint32_t | digest[ROM_CTRL_DIGEST_MULTIREG_COUNT] |
A fatal alert cause error.
See also: dif_rom_ctrl_fatal_alert_causes_t
.
A fatal alert cause error.
See also: dif_rom_ctrl_fatal_alert_causes_t
.
Definition at line 28 of file dif_rom_ctrl.h.
OT_WARN_UNUSED_RESULT dif_result_t dif_rom_ctrl_get_digest | ( | const dif_rom_ctrl_t * | rom_ctrl, |
dif_rom_ctrl_digest_t * | digest | ||
) |
Reads the (KMAC computed) ROM digest.
rom_ctrl | A ROM Controller handle. |
digest | KMAC digest of ROM. |
Definition at line 37 of file dif_rom_ctrl.c.
OT_WARN_UNUSED_RESULT dif_result_t dif_rom_ctrl_get_expected_digest | ( | const dif_rom_ctrl_t * | rom_ctrl, |
dif_rom_ctrl_digest_t * | expected_digest | ||
) |
Reads the expected ROM digest contained in the top eight words of ROM.
rom_ctrl | A ROM Controller handle. |
expected_digest | Expected KMAC digest of ROM. |
Definition at line 50 of file dif_rom_ctrl.c.
OT_WARN_UNUSED_RESULT dif_result_t dif_rom_ctrl_get_fatal_alert_cause | ( | const dif_rom_ctrl_t * | rom_ctrl, |
dif_rom_ctrl_fatal_alert_causes_t * | alert_causes | ||
) |
Reads the fatal alert cause bits of the ROM Controller.
rom_ctrl | A ROM Controller handle. |
Definition at line 24 of file dif_rom_ctrl.c.