Table of Contents

Class BackupMemory

Namespace
nanoFramework.Hardware.Stm32
Assembly
nanoFramework.Hardware.Stm32.dll

Provides access to STM32 backup registers.

public static class BackupMemory
Inheritance
BackupMemory
Inherited Members

Properties

Size

Gets the size of the backup memory on the current target.

public static int Size { get; }

Property Value

int

Methods

ReadBoolean(uint)

Reads a Boolean value from the backup memory.

public static bool ReadBoolean(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

bool

The value.

ReadByte(uint)

Reads a byte value from the backup memory.

public static byte ReadByte(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

byte

The value.

ReadBytes(uint, byte[])

Reads an array of byte values from the backup memory.

public static void ReadBytes(uint position, byte[] value)

Parameters

position uint

Position on the backup memory to read from.

value byte[]

The array of values.

ReadDateTime(uint)

Reads a date and time value from the backup memory.

public static DateTime ReadDateTime(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

DateTime

The value.

ReadInt16(uint)

Reads a 16-bit integer value from the backup memory.

public static short ReadInt16(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

short

The value.

ReadInt32(uint)

Reads a 32-bit integer value from the backup memory.

public static int ReadInt32(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

int

The value.

ReadInt64(uint)

Reads a 64-bit integer value from the backup memory.

public static long ReadInt64(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

long

The value.

ReadSingle(uint)

Reads a floating-point value from the backup memory.

public static float ReadSingle(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

float

The value.

ReadString(uint, uint)

Reads a string value from the backup memory.

public static string ReadString(uint position, uint lenght)

Parameters

position uint

Position on the backup memory to read from.

lenght uint

The length of the string.

Returns

string

The value.

ReadTimeSpan(uint)

Reads a time interval from the backup memory.

public static TimeSpan ReadTimeSpan(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

TimeSpan

The value.

ReadUInt16(uint)

Reads a 16-bit unsigned integer from the backup memory.

public static ushort ReadUInt16(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

ushort

The value.

ReadUInt32(uint)

Reads a 32-bit unsigned integer from the backup memory.

public static uint ReadUInt32(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

uint

The value.

ReadUInt64(uint)

Reads a 64-bit unsigned integer from the backup memory.

public static ulong ReadUInt64(uint position)

Parameters

position uint

Position on the backup memory to read from.

Returns

ulong

The value.

WriteBoolean(uint, bool)

Writes a Boolean value to the backup memory.

public static void WriteBoolean(uint position, bool value)

Parameters

position uint

Position on the backup memory to write the value.

value bool

The value to write.

WriteByte(uint, byte)

Writes a byte value to the backup memory.

public static void WriteByte(uint position, byte value)

Parameters

position uint

Position on the backup memory to write the value.

value byte

The value to write.

WriteBytes(uint, byte[])

Writes an array of byte values to the backup memory.

public static void WriteBytes(uint position, byte[] value)

Parameters

position uint

Position on the backup memory to write the value.

value byte[]

The value to write.

WriteDateTime(uint, DateTime)

Writes a date and time value to the backup memory.

public static void WriteDateTime(uint position, DateTime value)

Parameters

position uint

Position on the backup memory to write the value.

value DateTime

The value to write.

WriteInt16(uint, short)

Writes a 16-bit integer value to the backup memory.

public static void WriteInt16(uint position, short value)

Parameters

position uint

Position on the backup memory to write the value.

value short

The value to write.

WriteInt32(uint, int)

Writes a 32-bit integer value to the backup memory.

public static void WriteInt32(uint position, int value)

Parameters

position uint

Position on the backup memory to write the value.

value int

The value to write.

WriteInt64(uint, long)

Writes a 64-bit integer value to the backup memory.

public static void WriteInt64(uint position, long value)

Parameters

position uint

Position on the backup memory to write the value.

value long

The value to write.

WriteSingle(uint, float)

Write a floating-point value to the backup memory.

public static void WriteSingle(uint position, float value)

Parameters

position uint

Position on the backup memory to write the value.

value float

The value to write.

WriteString(uint, string)

Writes a string value to the backup memory.

public static void WriteString(uint position, string value)

Parameters

position uint

Position on the backup memory to write the value.

value string

The value to write.

WriteTimeSpan(uint, TimeSpan)

Writes a time interval value to the output stream.

public static void WriteTimeSpan(uint position, TimeSpan value)

Parameters

position uint

Position on the backup memory to write the value.

value TimeSpan

The value to write.

WriteUInt16(uint, ushort)

Writes a 16-bit unsigned integer value to the backup memory.

public static void WriteUInt16(uint position, ushort value)

Parameters

position uint

Position on the backup memory to write the value.

value ushort

The value to write.

WriteUInt32(uint, uint)

Writes a 32-bit unsigned integer value to the backup memory.

public static void WriteUInt32(uint position, uint value)

Parameters

position uint

Position on the backup memory to write the value.

value uint

The value to write.

WriteUInt64(uint, ulong)

Writes a 64-bit unsigned integer value to the backup memory.

public static void WriteUInt64(uint position, ulong value)

Parameters

position uint

Position on the backup memory to write the value.

value ulong

The value to write.