Share via


SPI.Configuration Constructor

Initializes a new instance of the Configuration class for a SPI interface.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public SPI.Configuration (
         PinChipSelect_Port,
         boolChipSelect_ActiveState,
         UInt16ChipSelect_SetupTime,
         UInt16ChipSelect_HoldTime,
         boolClock_IdleState,
         boolClock_Edge,
         UInt16Clock_Rate,
         SPI_moduleSPI_mod
)

Parameters

  • ChipSelect_Port
    The chip select port.
  • ChipSelect_ActiveState
    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
    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
    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
    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
    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_Rate
    The SPI clock rate in KHz.
  • SPI_mod
    The SPI bus used for the transaction.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

SPI.Configuration Class
SPI.Configuration Members
Microsoft.SPOT.Hardware Namespace