2.118.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

ParamDescription
ramIndexSpecifies the index of the RAM register to be written to
dataProvides 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.