Table of Contents

Interface IOutputSegment

Namespace
Iot.Device.Multiplexing
Assembly
Iot.Device.Multiplexing.dll

Abstracts a segment of outputs from multiplexing sources (like a shift register).

public interface IOutputSegment

Properties

this[int]

Segment values.

PinValue this[int index] { get; set; }

Parameters

index int

Property Value

PinValue

Length

Length of segment (number of outputs)

int Length { get; }

Property Value

int

Methods

Display(CancellationToken)

Displays current state of segment. Segment is displayed at least until token receives a cancellation signal, possibly due to a specified duration expiring.

void Display(CancellationToken token)

Parameters

token CancellationToken

TurnOffAll()

Turns off all outputs.

void TurnOffAll()

Write(byte)

Writes discrete underlying bits to a virtual segment. Writes each bit, left to right. Least significant bit will written to index 0. Does not display output.

void Write(byte value)

Parameters

value byte

Write(int, PinValue)

Writes a PinValue to a virtual segment. Does not display output until calling Display() or Display(CancellationToken ct) methods.

void Write(int index, PinValue value)

Parameters

index int
value PinValue

Write(SpanByte)

Writes discrete underlying bits to a virtual output. Writes each byte, left to right. Least significant bit will written to index 0. Does not display output.

void Write(SpanByte value)

Parameters

value SpanByte