Table of Contents

Class ByteEncoderSettings

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

Class to provide settings for the creation of a byte encoder.

public class ByteEncoderSettings : EncoderSettings
Inheritance
ByteEncoderSettings
Inherited Members
Extension Methods

Constructors

ByteEncoderSettings(RmtSymbol, RmtSymbol, bool, int)

Construct a ByteEncoderSettings object.

public ByteEncoderSettings(RmtSymbol bit0, RmtSymbol bit1, bool msbFirst, int byteLength = 0)

Parameters

bit0 RmtSymbol

A Rmt symbol with the representation of the 0 bit.

bit1 RmtSymbol

A Rmt symbol with the representation of the 1 bit.

msbFirst bool

True if the most significant bit is first. Bit 7 of the byte.

byteLength int

Length of data to be handled by encoder for multi stage encoding. If set to 0 then all remaining data in send will be processed. (default = 0)

Properties

Bit0

Get the RMT symbol with how to represent the 0 bit.

public RmtSymbol Bit0 { get; }

Property Value

RmtSymbol

Bit1

Get the RMT symbol with how to represent the 1 bit.

public RmtSymbol Bit1 { get; }

Property Value

RmtSymbol

ByteLength

Gets the number of bytes handled by the encoder. A value of 0 processes all remaining data.

public int ByteLength { get; }

Property Value

int

MsbFirst

Returns true if the most significant bit is first.

public bool MsbFirst { get; }

Property Value

bool