1.2.25.5 1.4.26.5 1.9.23.5 1.38.25.5 TRAM_RAMSet Function

C

bool TRAM_RAMSet( uint32_t ramIndex, uint32_t data );

Summary

Write data into the TrustRAM RAMx register

Description

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

Precondition

None

Parameters

Param Description
ramIndex Specifies the index of the RAM register to be written to
data Provides the data to be written into the RAM[index] register

Returns

true - If data is written successfully

false - If the ramIndex is out of range

Example

// Write Data into TrustRAM's RAM0 and RAM4 register
TRAM_RAMSet(0, 0x12345678);

TRAM_RAMSet(4, 0x87654321);

Remarks

None.