Class Mbi5027
- Namespace
- Iot.Device.Multiplexing
- Assembly
- Iot.Device.Mbi5027.dll
MBI5027 16-Bit shift register With 3-State output register and error detection. Supports SPI and GPIO control.
public class Mbi5027 : ShiftRegister, IOutputSegment
- Inheritance
-
Mbi5027
- Implements
- Inherited Members
Constructors
Mbi5027(Mbi5027PinMapping, int, GpioController?, bool)
Initialize a new shift register connected through GPIO.
public Mbi5027(Mbi5027PinMapping pinMapping, int bitLength = 16, GpioController? gpioController = null, bool shouldDispose = true)
Parameters
pinMappingMbi5027PinMappingThe pin mapping to use by the binding.
bitLengthintBit length of register, including chained registers. Default is 16 bits.
gpioControllerGpioControllerThe GPIO Controller used for interrupt handling.
shouldDisposeboolOption (true by default) to dispose the GPIO controller when disposing this instance.
Mbi5027(SpiDevice, int)
Initializes a new shift register device connected through SPI. Uses 3 pins (SDI -> SDI, SCLK -> SCLK, CE0 -> LE)
public Mbi5027(SpiDevice spiDevice, int bitLength = 16)
Parameters
spiDeviceSpiDeviceSpiDevice used for serial communication.
bitLengthintBit length of register, including chained registers. Default is 8 bits.
Methods
EnableDetectionMode()
Enable open/short eror detection mode. Requires use of GPIO controller.
public void EnableDetectionMode()
EnableNormalMode()
Enable normal mode. Requires use of GPIO controller.
public void EnableNormalMode()
ReadOutputErrorStatus()
Read output error status. Requires use of GPIO controller.
public PinValue[] ReadOutputErrorStatus()
Returns
- PinValue[]