Software APIs
Data Structures | Typedefs | Enumerations | Functions
dif_sram_ctrl_autogen.h File Reference

(ae68723)

SRAM_CTRL 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_sram_ctrl
 A handle to sram_ctrl. More...
 

Typedefs

typedef struct dif_sram_ctrl dif_sram_ctrl_t
 A handle to sram_ctrl. More...
 
typedef enum dif_sram_ctrl_alert dif_sram_ctrl_alert_t
 A sram_ctrl alert type.
 

Enumerations

enum  dif_sram_ctrl_alert { kDifSramCtrlAlertFatalError = 0 }
 A sram_ctrl alert type. More...
 

Functions

OT_WARN_UNUSED_RESULT dif_result_t dif_sram_ctrl_init (mmio_region_t base_addr, dif_sram_ctrl_t *sram_ctrl)
 Creates a new handle for a(n) sram_ctrl peripheral. More...
 
OT_WARN_UNUSED_RESULT dif_result_t dif_sram_ctrl_alert_force (const dif_sram_ctrl_t *sram_ctrl, dif_sram_ctrl_alert_t alert)
 Forces a particular alert, causing it to be escalated as if the hardware had raised it. More...
 

Detailed Description

SRAM_CTRL Device Interface Functions

Definition in file dif_sram_ctrl_autogen.h.


Data Structure Documentation

◆ dif_sram_ctrl

struct dif_sram_ctrl

A handle to sram_ctrl.

This type should be treated as opaque by users.

Definition at line 33 of file dif_sram_ctrl_autogen.h.

Data Fields
mmio_region_t base_addr The base address for the sram_ctrl hardware registers.

Typedef Documentation

◆ dif_sram_ctrl_t

A handle to sram_ctrl.

This type should be treated as opaque by users.

Enumeration Type Documentation

◆ dif_sram_ctrl_alert

A sram_ctrl alert type.

Enumerator
kDifSramCtrlAlertFatalError 

This fatal alert is triggered when a fatal TL-UL bus integrity fault is detected, or if the initialization mechanism has reached an invalid state.

Definition at line 56 of file dif_sram_ctrl_autogen.h.

Function Documentation

◆ dif_sram_ctrl_alert_force()

OT_WARN_UNUSED_RESULT dif_result_t dif_sram_ctrl_alert_force ( const dif_sram_ctrl_t sram_ctrl,
dif_sram_ctrl_alert_t  alert 
)

Forces a particular alert, causing it to be escalated as if the hardware had raised it.

Parameters
sram_ctrlA sram_ctrl handle.
alertThe alert to force.
Returns
The result of the operation.

Definition at line 28 of file dif_sram_ctrl_autogen.c.

◆ dif_sram_ctrl_init()

OT_WARN_UNUSED_RESULT dif_result_t dif_sram_ctrl_init ( mmio_region_t  base_addr,
dif_sram_ctrl_t sram_ctrl 
)

Creates a new handle for a(n) sram_ctrl peripheral.

This function does not actuate the hardware.

Parameters
base_addrThe MMIO base address of the sram_ctrl peripheral.
[out]sram_ctrlOut param for the initialized handle.
Returns
The result of the operation.

Definition at line 17 of file dif_sram_ctrl_autogen.c.