Software APIs
Data Fields
test_register Struct Reference

Test csr struct. More...

Data Fields

const char * name
 Name of the device.
 
uintptr_t base
 Base address of the test block.
 
ptrdiff_t offset
 Offset of CSR / MEM of the test block.
 
uint32_t write_val
 Arbitrary write value to check register reset. More...
 
uint32_t exp_read_val
 Expected read value. More...
 

Detailed Description

Test csr struct.

Definition at line 72 of file rv_dm_ndm_reset_req.c.

Field Documentation

◆ base

uintptr_t test_register::base

Base address of the test block.

Definition at line 80 of file rv_dm_ndm_reset_req.c.

◆ exp_read_val

uint32_t test_register::exp_read_val

Expected read value.

For Group 2 registers, it is programmed value - arbitrary, hard coded. For Group 3 registers, it is reset value. in the beginning of the test.

Definition at line 96 of file rv_dm_ndm_reset_req.c.

◆ name

const char* test_register::name

Name of the device.

Definition at line 76 of file rv_dm_ndm_reset_req.c.

◆ offset

ptrdiff_t test_register::offset

Offset of CSR / MEM of the test block.

Definition at line 84 of file rv_dm_ndm_reset_req.c.

◆ write_val

uint32_t test_register::write_val

Arbitrary write value to check register reset.

If the register got reset, then this value will get wiped out.

Definition at line 89 of file rv_dm_ndm_reset_req.c.