Table of Contents

Class TransmitterChannel

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

A class that can be used to create and transmit RMT symbols on ESP32

public class TransmitterChannel : TransmitterEncodedChannel, IDisposable
Inheritance
TransmitterChannel
Implements
Inherited Members
Extension Methods

Remarks

For detailed explanation of ESP32 RMT Module, please check the Espressif official documentation here: https://docs.espressif.com/projects/esp-idf/en/v4.4.3/esp32/api-reference/peripherals/rmt.html

Constructors

TransmitterChannel(TransmitChannelSettings)

Initializes a new instance of the TransmitterChannel class.

public TransmitterChannel(TransmitChannelSettings settings)

Parameters

settings TransmitChannelSettings

The channel settings to use.

Exceptions

ArgumentNullException

settings cannot be null.

Methods

Dispose(bool)

Dispose the channel and release resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

True if called from Dispose, false if called from finalizer.

Send(RmtSymbols, bool)

Send the filled RMT symbols to the transmitter

public void Send(RmtSymbols symbols, bool waitTxDone = true)

Parameters

symbols RmtSymbols

RmtSymbols to encode and send.

waitTxDone bool

If true wait the TX process to end, false function returns without waiting, but if another symbol is send before the end of the previous process an error will occur.

SendData(byte[], bool)

Send a RAW RmtSymbol data to RMT module

public void SendData(byte[] data, bool waitTxDone = true)

Parameters

data byte[]

byte array of data for TX module ready for native function

waitTxDone bool

Wait for TX to complete before returning.