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 | |
---|---|---|
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. | |
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 | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
BusyPin | Contains the busy pin value. | |
BusyPin_ActiveState | true if the pin is in active state; otherwise. false. | |
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_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. | |
ChipSelect_Port | The chip select port. | |
ChipSelect_SetupTime | The setup time for the chip select port, in milliseconds. | |
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_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_RateKHz | The SPI clock rate in kilohertz. | |
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.