Class TransmitterChannel
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
settingsTransmitChannelSettingsThe channel settings to use.
Exceptions
- ArgumentNullException
settingscannot be null.
Methods
Dispose(bool)
Dispose the channel and release resources.
protected override void Dispose(bool disposing)
Parameters
disposingboolTrue 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
symbolsRmtSymbolsRmtSymbols to encode and send.
waitTxDoneboolIf 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)