Struct Sn74hc595PinMapping
- Namespace
- Iot.Device.Multiplexing
- Assembly
- Iot.Device.Sn74hc595.dll
Represents pin mapping for the Sn74hc595 binding. Requires specifying at least three pins (serial data in, data clock, and latch). The other two pins (output enable and shift register clear) should either be specified or separately wired.
public struct Sn74hc595PinMapping
Constructors
Sn74hc595PinMapping(int, int, int, int, int)
Initializes a new instance of the Sn74hc595PinMapping struct.
public Sn74hc595PinMapping(int ser, int srclk, int rclk, int oe = -1, int srclr = -1)
Parameters
serintSerial data pin.
srclkintShift register pin (shift to data register).
rclkintRegister clock pin (latch).
oeintOutput enable pin.
srclrintShift register clear pin (shift register is cleared).
Properties
Complete
Standard pin bindings for the Sn74hc595.
public static Sn74hc595PinMapping Complete { get; }
Property Value
Minimal
Minimal pin bindings for the Sn74hc595. Output enable should be wired to ground when using Minimal mapping. Shift register clear should be wired high when using Minimal mapping.
public static Sn74hc595PinMapping Minimal { get; }
Property Value
OE
Gets or sets OE (output enable) pin number.
public int OE { readonly get; set; }
Property Value
RClk
Gets or sets RCLK (latch) pin number.
public int RClk { readonly get; set; }
Property Value
Ser
Gets or sets SER (data) pin number.
public int Ser { readonly get; set; }
Property Value
SrClk
Gets or sets SRCLK (shift) pin number.
public int SrClk { readonly get; set; }
Property Value
SrClr
Gets or sets SRCLR (clear register) pin number.
public int SrClr { readonly get; set; }