Show / Hide Table of Contents

Class SPI

Inheritance
Object
SPI
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Hal
Assembly: FRC.Hal.dll
Syntax
[NativeInterface(typeof(ISPI))]
public static class SPI

Methods

| Improve this Doc View Source

Close(SPIPort)

Declaration
public static void Close(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

ConfigureAutoStall(SPIPort, Int32, Int32, Int32)

Declaration
public static void ConfigureAutoStall(SPIPort port, int csToSclkTicks, int stallTicks, int pow2BytesPerRead)
Parameters
Type Name Description
SPIPort port
Int32 csToSclkTicks
Int32 stallTicks
Int32 pow2BytesPerRead
| Improve this Doc View Source

ForceAutoRead(SPIPort)

Declaration
public static void ForceAutoRead(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

FreeAuto(SPIPort)

Declaration
public static void FreeAuto(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

GetAutoDroppedCount(SPIPort)

Declaration
public static int GetAutoDroppedCount(SPIPort port)
Parameters
Type Name Description
SPIPort port
Returns
Type Description
Int32
| Improve this Doc View Source

GetHandle(SPIPort)

Declaration
public static int GetHandle(SPIPort port)
Parameters
Type Name Description
SPIPort port
Returns
Type Description
Int32
| Improve this Doc View Source

InitAuto(SPIPort, Int32)

Declaration
public static void InitAuto(SPIPort port, int bufferSize)
Parameters
Type Name Description
SPIPort port
Int32 bufferSize
| Improve this Doc View Source

Initialize(SPIPort)

Declaration
public static void Initialize(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

Read(SPIPort, Byte*, Int32)

Declaration
public static int Read(SPIPort port, byte *buffer, int count)
Parameters
Type Name Description
SPIPort port
Byte* buffer
Int32 count
Returns
Type Description
Int32
| Improve this Doc View Source

ReadAutoReceivedData(SPIPort, UInt32*, Int32, Double)

Declaration
public static int ReadAutoReceivedData(SPIPort port, uint *buffer, int numToRead, double timeout)
Parameters
Type Name Description
SPIPort port
UInt32* buffer
Int32 numToRead
Double timeout
Returns
Type Description
Int32
| Improve this Doc View Source

SetAutoTransmitData(SPIPort, Byte*, Int32, Int32)

Declaration
public static void SetAutoTransmitData(SPIPort port, byte *dataToSend, int dataSize, int zeroSize)
Parameters
Type Name Description
SPIPort port
Byte* dataToSend
Int32 dataSize
Int32 zeroSize
| Improve this Doc View Source

SetChipSelectActiveHigh(SPIPort)

Declaration
public static void SetChipSelectActiveHigh(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

SetChipSelectActiveLow(SPIPort)

Declaration
public static void SetChipSelectActiveLow(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

SetHandle(SPIPort, Int32)

Declaration
public static void SetHandle(SPIPort port, int handle)
Parameters
Type Name Description
SPIPort port
Int32 handle
| Improve this Doc View Source

SetOpts(SPIPort, Int32, Int32, Int32)

Declaration
public static void SetOpts(SPIPort port, int msbFirst, int sampleOnTrailing, int clkIdleHigh)
Parameters
Type Name Description
SPIPort port
Int32 msbFirst
Int32 sampleOnTrailing
Int32 clkIdleHigh
| Improve this Doc View Source

SetSpeed(SPIPort, Int32)

Declaration
public static void SetSpeed(SPIPort port, int speed)
Parameters
Type Name Description
SPIPort port
Int32 speed
| Improve this Doc View Source

StartAutoRate(SPIPort, Double)

Declaration
public static void StartAutoRate(SPIPort port, double period)
Parameters
Type Name Description
SPIPort port
Double period
| Improve this Doc View Source

StartAutoTrigger(SPIPort, Int32, AnalogTriggerType, Int32, Int32)

Declaration
public static void StartAutoTrigger(SPIPort port, int digitalSourceHandle, AnalogTriggerType analogTriggerType, int triggerRising, int triggerFalling)
Parameters
Type Name Description
SPIPort port
Int32 digitalSourceHandle
AnalogTriggerType analogTriggerType
Int32 triggerRising
Int32 triggerFalling
| Improve this Doc View Source

StopAuto(SPIPort)

Declaration
public static void StopAuto(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

Transaction(SPIPort, Byte*, Byte*, Int32)

Declaration
public static int Transaction(SPIPort port, byte *dataToSend, byte *dataReceived, int size)
Parameters
Type Name Description
SPIPort port
Byte* dataToSend
Byte* dataReceived
Int32 size
Returns
Type Description
Int32
| Improve this Doc View Source

Write(SPIPort, Byte*, Int32)

Declaration
public static int Write(SPIPort port, byte *dataToSend, int sendSize)
Parameters
Type Name Description
SPIPort port
Byte* dataToSend
Int32 sendSize
Returns
Type Description
Int32
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 RobotDotNet