SpiInterface constructor

SpiInterface({
  1. int dataLength = 1,
})

Creates a new SpiInterface.

Implementation

SpiInterface({this.dataLength = 1})
    : super(portsFromConsumer: [
        Logic.port('MISO')
      ], portsFromProvider: [
        Logic.port('MOSI'),
        Logic.port('CSB'),
        Logic.port('SCLK')
      ]);