Software APIs
Data Fields
test Struct Reference

A structure to keep the info for peripheral IPs. More...

Data Fields

const char * name
 Name of the peripheral.
 
uintptr_t base
 Base address for the peripheral.
 
ptrdiff_t offset
 Offset to the peripheral's ALERT_TEST register. More...
 
void * dif
 Handle to the DIF object for this peripheral.
 
uint32_t fatal_alert_bit
 The fatal_alert pin in peripheral's ALERT_TEST reg.
 
const uint32_t * alert_ids
 List of Alert IDs for the peripheral.
 
const uint32_t num_alert_peri
 number of alerts for the peripheral
 
uint32_t clk_index
 The index of this device's clk in the clock manager.
 
bool is_hintable
 Is the clock hinteable (==true) or gateable(==false).
 
uint32_t reset_index
 The index of this device in the reset manager.
 
uint32_t region_index
 Memory protection(MP) region number.
 
uint32_t randomdata [6]
 Write data per each page. More...
 
uint32_t page_start
 Page start index per each MP region.
 
bool write_permission [6]
 Write permission per each page.
 
bool read_permission [6]
 Read permission per each page.
 
dif_flash_ctrl_data_region_properties_t data_region
 MP region config property.
 
uintptr_t(* get_base_address )(int32_t dt, int32_t reg_block)
 Initialization for the base address of the peripheral. More...
 
int32_t dt
 
int32_t reg_block
 The register block that the test register belongs to.
 
void(* init )(void *dif, int32_t dt)
 Initialization for the DIF based on an address location. More...
 
void(* config )(void *dif)
 Configuration and initialization actions for the device. More...
 
uint32_t program_val
 Arbitrary test register value before reset.
 
int32_t reset_index
 The device-local DT reset index for this device. More...
 
dt_reset_t(* get_rstmgr_rst_index )(int32_t dt, int32_t reset_index)
 The DT function for getting the reset manager index of the corresponding device for this test using the reset index. More...
 

Detailed Description

A structure to keep the info for peripheral IPs.

Definition at line 149 of file alert_handler_lpg_clkoff_test.c.

Field Documentation

◆ config

void(* test::config) (void *dif)

Configuration and initialization actions for the device.

This will be passed the value of dif above.

If NULL, the test register will be set to 'reset_vals[]'.

Definition at line 242 of file rstmgr_sw_rst_ctrl_test.c.

◆ get_base_address

uintptr_t(* test::get_base_address) (int32_t dt, int32_t reg_block)

Initialization for the base address of the peripheral.

Cannot be NULL.

Definition at line 213 of file rstmgr_sw_rst_ctrl_test.c.

◆ get_rstmgr_rst_index

dt_reset_t(* test::get_rstmgr_rst_index) (int32_t dt, int32_t reset_index)

The DT function for getting the reset manager index of the corresponding device for this test using the reset index.

Cannot be NULL.

Definition at line 259 of file rstmgr_sw_rst_ctrl_test.c.

◆ init

void(* test::init) (void *dif, int32_t dt)

Initialization for the DIF based on an address location.

May be NULL.

Definition at line 235 of file rstmgr_sw_rst_ctrl_test.c.

◆ offset

ptrdiff_t test::offset

Offset to the peripheral's ALERT_TEST register.

Offset to the peripheral's test register.

Definition at line 161 of file alert_handler_lpg_clkoff_test.c.

◆ randomdata

uint32_t test::randomdata[6]

Write data per each page.

Full size of write data per page (2KB) is generated by loop: j = 0; j < words_per_page (256); j++ randomdata + j

Definition at line 54 of file flash_ctrl_mem_protection_test.c.

◆ reset_index

int32_t test::reset_index

The device-local DT reset index for this device.

By using the corresponding dt instance, this is used to retrieve the correct index in the reset manager for this device.

Definition at line 252 of file rstmgr_sw_rst_ctrl_test.c.