public Configuration( Cpu.Pin ChipSelect_Port, bool ChipSelect_ActiveState, uint ChipSelect_SetupTime, uint ChipSelect_HoldTime, bool Clock_IdleState, bool Clock_Edge, uint Clock_RateKHz, SPI_module SPI_mod, Cpu.Pin BusyPin, bool BusyPin_ActiveState ) { this.ChipSelect_Port = ChipSelect_Port; this.ChipSelect_ActiveState = ChipSelect_ActiveState; this.ChipSelect_SetupTime = ChipSelect_SetupTime; this.ChipSelect_HoldTime = ChipSelect_HoldTime; this.Clock_IdleState = Clock_IdleState; this.Clock_Edge = Clock_Edge; this.Clock_RateKHz = Clock_RateKHz; this.SPI_mod = SPI_mod; this.BusyPin = BusyPin; this.BusyPin_ActiveState = BusyPin_ActiveState; }
public Configuration( Cpu.Pin ChipSelect_Port, bool ChipSelect_ActiveState, uint ChipSelect_SetupTime, uint ChipSelect_HoldTime, bool Clock_IdleState, bool Clock_Edge, uint Clock_RateKHz, SPI_module SPI_mod, Cpu.Pin BusyPin, bool BusyPin_ActiveState ) { this.ChipSelect_Port = ChipSelect_Port; this.ChipSelect_ActiveState = ChipSelect_ActiveState; this.ChipSelect_SetupTime = ChipSelect_SetupTime; this.ChipSelect_HoldTime = ChipSelect_HoldTime; this.Clock_IdleState = Clock_IdleState; this.Clock_Edge = Clock_Edge; this.Clock_RateKHz = Clock_RateKHz; this.SPI_mod = SPI_mod; this.BusyPin = BusyPin; this.BusyPin_ActiveState = BusyPin_ActiveState; this.Custom_BitsPerTransfer = 0; // 0 means "no custom bits per transfer specified" }
public Configuration( Cpu.Pin ChipSelect_Port, bool ChipSelect_ActiveState, uint ChipSelect_SetupTime, uint ChipSelect_HoldTime, bool Clock_IdleState, bool Clock_Edge, uint Clock_RateKHz, SPI_module SPI_mod ) : this(ChipSelect_Port, ChipSelect_ActiveState, ChipSelect_SetupTime, ChipSelect_HoldTime, Clock_IdleState, Clock_Edge, Clock_RateKHz, SPI_mod, Cpu.Pin.GPIO_NONE, false) { }
static extern int wiringPiSPISetup(SPI_module channel, int speed);
static extern int wiringPiSPIDataRW(SPI_module channel, [MarshalAs(UnmanagedType.LPArray)] byte[] data, int len);
static extern int wiringPiSPIGetFd(SPI_module channel);
public Configuration(Cpu.Pin ChipSelect_Port, bool ChipSelect_ActiveState, uint ChipSelect_SetupTime, uint ChipSelect_HoldTime, bool Clock_IdleState, bool Clock_Edge, uint Clock_RateKHz, SPI_module SPI_mod, Cpu.Pin BusyPin, bool BusyPin_ActiveState) { }