Share via


SPI.Configuration Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents the configuration for an SPI interface.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Hardware..::..SPI..::..Configuration

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Class Configuration
public class Configuration
public ref class Configuration
type Configuration =  class end
public class Configuration

The SPI..::..Configuration type exposes the following members.

Constructors

  Name Description
Public method SPI. . :: . .Configuration(Cpu. . :: . .Pin, Boolean, UInt32, UInt32, Boolean, Boolean, UInt32, SPI. . :: . .SPI_module) Initializes a new instance of the SPI..::..Configuration class for a SPI interface.
Public method SPI. . :: . .Configuration(Cpu. . :: . .Pin, Boolean, UInt32, UInt32, Boolean, Boolean, UInt32, SPI. . :: . .SPI_module, Cpu. . :: . .Pin, Boolean) Initializes a new instance of the SPI..::..Configuration class for a SPI interface.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public field BusyPin Contains the busy pin value.
Public field BusyPin_ActiveState true if the pin is in active state; otherwise. false.
Public field 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.
Public field 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.
Public field ChipSelect_Port The chip select port.
Public field ChipSelect_SetupTime The setup time for the chip select port, in milliseconds.
Public field 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.
Public field 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.
Public field Clock_RateKHz The SPI clock rate in kilohertz.
Public field SPI_mod Selects the SPI bus for the transaction.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Hardware Namespace