Class TransmitterEncodedChannel
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
settingsTransmitChannelSettingsencoderSettingsEncoderSettings[]
Exceptions
- ArgumentNullException
settingscannot 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
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
IdleLevel
Gets or sets a value indicating the RMT idle level. true = HIGH.
public bool IdleLevel { get; set; }
Property Value
IsChannelIdle
Gets a value indicating whether the channel is in idle mode.
public bool IsChannelIdle { get; }
Property Value
LoopCount
Gets or sets the maximum transmission loop count. Only applicable if EnableLooping is set to true.
public int LoopCount { get; set; }
Property Value
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
disposingbool
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
encoderDataEncoderData[]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.
waitTxDoneboolWait for TX to complete before returning.
Exceptions
- ArgumentException
The number of objects in array must equal number of encoders.