示例#1
0
文件: SPI.cs 项目: prabby/miniclr
 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;
 }
示例#2
0
            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;
            }
示例#3
0
            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"
            }
示例#4
0
 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)
 {
 }
示例#5
0
文件: SPI.cs 项目: KAW0/Alter-Native
 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)
 {
 }
示例#6
0
 static extern int wiringPiSPISetup(SPI_module channel, int speed);
示例#7
0
 static extern int wiringPiSPIDataRW(SPI_module channel, [MarshalAs(UnmanagedType.LPArray)] byte[] data, int len);
示例#8
0
 static extern int wiringPiSPIGetFd(SPI_module channel);
示例#9
0
 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)
 {
 }