FirmataCommandSequence Class

Definition

A firmata command sequence Intended to be changed to public visibility later

public class FirmataCommandSequence
public class FirmataCommandSequence : IEquatable<Iot.Device.Arduino.FirmataCommandSequence>
type FirmataCommandSequence = class
type FirmataCommandSequence = class
    interface IEquatable<FirmataCommandSequence>
Public Class FirmataCommandSequence
Public Class FirmataCommandSequence
Implements IEquatable(Of FirmataCommandSequence)
Inheritance
FirmataCommandSequence
Implements

Constructors

FirmataCommandSequence()

Create a new sysex command sequence. The StartSysex byte is added automatically.

Fields

EndSysex

End of sysex command byte. Must end all sysex commands.

StartSysex

Start of sysex command byte. Used as start byte for almost all extended commands.

Properties

Length

The current length of the sequence

Sequence

The current sequence

Methods

DecodeInt14(Byte[], Int32)

Decodes a 14-bit integer into a short

DecodeInt32(ReadOnlySpan<Byte>, Int32)

Decode an int from packed 7-bit data. This way of encoding uints is only used in extension modules.

DecodeUInt32(ReadOnlySpan<Byte>, Int32)

Decode an uint from packed 7-bit data. This way of encoding uints is only used in extension modules.

Equals(FirmataCommandSequence)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

SendInt14(Int32)

Write a packed Int14 to the stream. This is used to write an integer of up to 14 bits.

SendInt32(Int32)

Send an Int32 as 5 x 7 bits. This form of transmitting integers is only supported by extension modules

SendUInt32(UInt32)

Send an Uint32 as 5 x 7 bits. This form of transmitting integers is only supported by extension modules

ToString()

Returns a string that represents the current object.

Write(Byte[])

Add a sequence of bytes to the command sequence. The bytes must be encoded already.

Write(Byte[], Int32, Int32)

Add a sequence of bytes to the command sequence. The bytes must be encoded already.

WriteByte(Byte)

Add a byte to the command sequence

WriteBytesAsTwo7bitBytes(ReadOnlySpan<Byte>)

Encodes a set of bytes with 7 bits and adds them to the sequence. Each input byte is encoded in 2 bytes.

Applies to