Class ByteEncoderSettings
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
bit0RmtSymbolA Rmt symbol with the representation of the 0 bit.
bit1RmtSymbolA Rmt symbol with the representation of the 1 bit.
msbFirstboolTrue if the most significant bit is first. Bit 7 of the byte.
byteLengthintLength 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
Bit1
Get the RMT symbol with how to represent the 1 bit.
public RmtSymbol Bit1 { get; }
Property Value
ByteLength
Gets the number of bytes handled by the encoder. A value of 0 processes all remaining data.
public int ByteLength { get; }
Property Value
MsbFirst
Returns true if the most significant bit is first.
public bool MsbFirst { get; }