1.2.25.4 1.4.26.4 1.9.23.4 1.38.25.4 TRAM_RAMGet Function

C

bool TRAM_RAMGet( uint32_t ramIndex, uint32_t *data );

Summary

Reads data from the TrustRAM RAMx register

Description

This function is used to read 32-Bit data from the TrustRAM RAM[ramIndex] register.

Precondition

None

Parameters

Param Description
ramIndex Specifies the index of the RAM register to be written to
*data Pointer to the user buffer to store the data read from RAM[index] register

Returns

true - If data is read successfully

false - If the ramIndex is out of range

Example

uint32_t data;

// Read Data from TrustRAM's RAM0 register
TRAM_RAMGet(0, &data);

Remarks

None.