Table of Contents

Class RmtSymbols

Namespace
nanoFramework.Hardware.Esp32.Rmt
Assembly
nanoFramework.Hardware.Esp32.Rmt.dll

Class to encapsulate an array of RmtSymbols.

public class RmtSymbols : IEnumerable
Inheritance
RmtSymbols
Implements
Inherited Members
Extension Methods

Constructors

RmtSymbols()

Construct RmtSymbols object.

public RmtSymbols()

RmtSymbols(RmtSymbol[])

Construct RmtSymbols object with RmtSymbol array.

public RmtSymbols(RmtSymbol[] symbolsArray)

Parameters

symbolsArray RmtSymbol[]

An array or RmtSymbols or null

Properties

Count

Count of number of added symbols.

public int Count { get; }

Property Value

int

this[int]

Access a RmtSymbol from the array of symbols.

public RmtSymbol this[int index] { get; set; }

Parameters

index int

Property Value

RmtSymbol

A RmtSymbol object.

Exceptions

IndexOutOfRangeException

Methods

Add(RmtSymbol)

Add new RMT symbol to the list of symbols that will be sent.

public void Add(RmtSymbol cmd)

Parameters

cmd RmtSymbol

RmtSymbol to Add

Clear()

Clear list of symbols.

public void Clear()

GetEnumerator()

GetEnumerator to allow enumeration of RmtSymbols using foreach loop.

public IEnumerator GetEnumerator()

Returns

IEnumerator

Serialize()

Serialize the symbols object to native symbols as byte buffer.

public byte[] Serialize()

Returns

byte[]

Native RmtSymbol in a byte array.

ToArray()

Convert the internal list of symbols to an array.

public RmtSymbol[] ToArray()

Returns

RmtSymbol[]

An array of RmtSymbol objects.