Struct ShiftRegisterPinMapping
- Namespace
- Iot.Device.Multiplexing
- Assembly
- Iot.Device.ShiftRegister.dll
Represents pin mappings for the ShiftRegister binding. Requires specifying 3 pins (serial data in, data clock, and latch). Can specify output enable pin (otherwise, wire to ground).
public struct ShiftRegisterPinMapping
Constructors
ShiftRegisterPinMapping(int, int, int, int)
Initializes a new instance of the ShiftRegisterPinMapping struct.
public ShiftRegisterPinMapping(int serialData, int clock, int latchEnable, int outputEnable = -1)
Parameters
serialDataintSerial data in pin.
clockintShift register clock pin.
latchEnableintRegister clock pin (latch).
outputEnableintOutput enable pin.
Properties
Clock
Gets or sets storage register clock pin.
public int Clock { readonly get; set; }
Property Value
Complete
Complete pin bindings for ShiftRegister.
public static ShiftRegisterPinMapping Complete { get; }
Property Value
LatchEnable
Gets or sets shift register clock pin.
public int LatchEnable { readonly get; set; }
Property Value
Minimal
Minimal pin bindings for ShiftRegister. Output enable should be wired to ground when using Minimal mapping.
public static ShiftRegisterPinMapping Minimal { get; }
Property Value
OutputEnable
Gets or sets output enable pin.
public int OutputEnable { readonly get; set; }
Property Value
SerialDataInput
Gets or sets serial data in pin.
public int SerialDataInput { readonly get; set; }