Table of Contents

Class TransmitterEncodedChannel

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 TransmitterEncodedChannel : RmtChannel, IDisposable
Inheritance
TransmitterEncodedChannel
Implements
Derived
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/v5.4.4/esp32/api-reference/peripherals/rmt.html

Constructors

TransmitterEncodedChannel(TransmitChannelSettings, EncoderSettings[])

Initializes a new instance of the TransmitterChannel class with a multi encoders.

public TransmitterEncodedChannel(TransmitChannelSettings settings, EncoderSettings[] encoderSettings)

Parameters

settings TransmitChannelSettings
encoderSettings EncoderSettings[]

Exceptions

ArgumentNullException

settings cannot be null.

Properties

CarrierLevel

Gets or sets a value indicating at which level of RMT output is the carrier wave applied. true = HIGH.

public bool CarrierLevel { get; set; }

Property Value

bool

EnableLooping

Gets or sets a value indicating whether to enable or disable looping through the ring buffer when transmitting RmtSymbols.

public bool EnableLooping { get; set; }

Property Value

bool

IdleLevel

Gets or sets a value indicating the RMT idle level. true = HIGH.

public bool IdleLevel { get; set; }

Property Value

bool

IsChannelIdle

Gets a value indicating whether the channel is in idle mode.

public bool IsChannelIdle { get; }

Property Value

bool

LoopCount

Gets or sets the maximum transmission loop count. Only applicable if EnableLooping is set to true.

public int LoopCount { get; set; }

Property Value

int

Remarks

This configuration is not available on the base ESP32 target and will be ignored. Please refer to the ESP32 IDF docs for more information on feature availability for the various ESP32 targets.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Finalize()

protected override void Finalize()

SendWithEncoders(EncoderData[], bool)

Send a data to RMT module via encoders.

public void SendWithEncoders(EncoderData[] encoderData, bool waitTxDone = true)

Parameters

encoderData EncoderData[]

An array of EncoderData used to provide data and parameters to encoders which require data. If encoder step already has data then it will be skipped.

waitTxDone bool

Wait for TX to complete before returning.

Exceptions

ArgumentException

The number of objects in array must equal number of encoders.