Click or drag to resize

BitBangSpiConfig Class

This class stores all the relevant information about a given bit bang SPI connection.
Inheritance Hierarchy
SystemObject
  FX3ApiBitBangSpiConfig

Namespace:  FX3Api
Assembly:  FX3Api (in FX3Api.dll) Version: 2.9.4.0 (2.9.4)
Syntax
public class BitBangSpiConfig

The BitBangSpiConfig type exposes the following members.

Constructors
  NameDescription
Public methodBitBangSpiConfig
Constructor which lets you specify set of default pins to use as bit bang SPI pins
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetParameterArray
Get a parameters array for the current bit bang SPI configuration
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldCPHA
Bit bang SPI clock phase. If set to false (0) data is sampled on the clock active to inactive edge, and updated on the inactive to active edge. If set to true (1), data is updated on the clock active to inactive transition, and data is sampled on the inactive to active edge. The CPHA/CPOL settings used are based on this diagram: https://en.wikipedia.org/wiki/Serial_Peripheral_Interface#/media/File:SPI_timing_diagram2.svg
Public fieldCPOL
Bit bang SPI clock polarity. True (1) is idle high, False (0) is idle low.
Public fieldCS
Chip select pin for bit bang SPI
Public fieldCSLagTicks
Number of timer ticks from last sclk edge to CS rising edge
Public fieldCSLeadTicks
Number of timer ticks from CS falling edge to first sclk edge
Public fieldMISO
MISO (master is, slave out) pin for bit bang SPI
Public fieldMOSI
MOSI (master out, slave in) pin for bit bang SPI
Public fieldSCLK
SCLK pin for bit bang SPI
Public fieldSCLKHalfPeriodTicks
Half SCLK period timer ticks
Public fieldStallTicks
Stall time timer ticks
Top
See Also