SPI.Configuration Constructor (Cpu.Pin, Boolean, UInt32, UInt32, Boolean, Boolean, UInt32, SPI.SPI_module, Cpu.Pin, Boolean)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the SPI..::..Configuration class for a SPI interface.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Sub New ( _
ChipSelect_Port As Cpu.Pin, _
ChipSelect_ActiveState As Boolean, _
ChipSelect_SetupTime As UInteger, _
ChipSelect_HoldTime As UInteger, _
Clock_IdleState As Boolean, _
Clock_Edge As Boolean, _
Clock_RateKHz As UInteger, _
SPI_mod As SPI.SPI_module, _
BusyPin As Cpu.Pin, _
BusyPin_ActiveState As Boolean _
)
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.SPI_module SPI_mod,
Cpu.Pin BusyPin,
bool BusyPin_ActiveState
)
public:
Configuration(
Cpu::Pin ChipSelect_Port,
bool ChipSelect_ActiveState,
unsigned int ChipSelect_SetupTime,
unsigned int ChipSelect_HoldTime,
bool Clock_IdleState,
bool Clock_Edge,
unsigned int Clock_RateKHz,
SPI::SPI_module SPI_mod,
Cpu::Pin BusyPin,
bool BusyPin_ActiveState
)
new :
ChipSelect_Port:Cpu.Pin *
ChipSelect_ActiveState:bool *
ChipSelect_SetupTime:uint32 *
ChipSelect_HoldTime:uint32 *
Clock_IdleState:bool *
Clock_Edge:bool *
Clock_RateKHz:uint32 *
SPI_mod:SPI.SPI_module *
BusyPin:Cpu.Pin *
BusyPin_ActiveState:bool -> Configuration
public function SPI..::..Configuration(
ChipSelect_Port : Cpu..::..Pin,
ChipSelect_ActiveState : boolean,
ChipSelect_SetupTime : uint,
ChipSelect_HoldTime : uint,
Clock_IdleState : boolean,
Clock_Edge : boolean,
Clock_RateKHz : uint,
SPI_mod : SPI..::..SPI_module,
BusyPin : Cpu..::..Pin,
BusyPin_ActiveState : boolean
)
Parameters
- ChipSelect_Port
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin
The chip select port.
- ChipSelect_ActiveState
Type: System. . :: . .Boolean
The active state for the chip select port. If true, the chip select port will be set to high when accessing the chip; if false, the chip select port will be set to low when accessing the chip.
- ChipSelect_SetupTime
Type: System. . :: . .UInt32
The setup time for the chip select port. In other words, this parameter specifies the amount of time that will elapse between the time at which the device is selected and the time at which the clock and the clock data transmission will start.
- ChipSelect_HoldTime
Type: System. . :: . .UInt32
The hold time for the chip select port. In other words, this parameter specifies the amount of time that the chip select port must remain in the active state before the device is unselected, or the amount of time that the chip select will remain in the active state after the data read/write transaction has been completed.
- Clock_IdleState
Type: System. . :: . .Boolean
The idle state of the clock. If true, the SPI clock signal will be set to high while the device is idle; if false, the SPI clock signal will be set to low while the device is idle. The idle state occurs whenever the chip is not selected.
- Clock_Edge
Type: System. . :: . .Boolean
The sampling clock edge. If true, data is sampled on the SPI clock rising edge; if false, the data is sampled on the SPI clock falling edge.
- Clock_RateKHz
Type: System. . :: . .UInt32
The SPI clock rate in KHz.
- SPI_mod
Type: Microsoft.SPOT.Hardware. . :: . .SPI. . :: . .SPI_module
The SPI bus used for the transaction.
- BusyPin
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin
The busy pin value.
- BusyPin_ActiveState
Type: System. . :: . .Boolean
true if the pin is in active state; otherwise. false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.
See Also
Reference
SPI. . :: . .Configuration Class