Show / Hide Table of Contents

Interface ISPI

Namespace: Hal.Natives
Assembly: FRC.Hal.dll
Syntax
[StatusCheckedBy(typeof(StatusHandling), null)]
public interface ISPI

Methods

| Improve this Doc View Source

HAL_CloseSPI(SPIPort)

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

HAL_ConfigureSPIAutoStall(SPIPort, Int32, Int32, Int32)

Declaration
void HAL_ConfigureSPIAutoStall(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

HAL_ForceSPIAutoRead(SPIPort)

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

HAL_FreeSPIAuto(SPIPort)

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

HAL_GetSPIAutoDroppedCount(SPIPort)

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

HAL_GetSPIHandle(SPIPort)

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

HAL_InitializeSPI(SPIPort)

Declaration
[StatusCheckRange(0, typeof(StatusHandling), "SPIStatusCheck")]
void HAL_InitializeSPI(SPIPort port)
Parameters
Type Name Description
SPIPort port
| Improve this Doc View Source

HAL_InitSPIAuto(SPIPort, Int32)

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

HAL_ReadSPI(SPIPort, Byte*, Int32)

Declaration
int HAL_ReadSPI(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

HAL_ReadSPIAutoReceivedData(SPIPort, UInt32*, Int32, Double)

Declaration
int HAL_ReadSPIAutoReceivedData(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

HAL_SetSPIAutoTransmitData(SPIPort, Byte*, Int32, Int32)

Declaration
void HAL_SetSPIAutoTransmitData(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

HAL_SetSPIChipSelectActiveHigh(SPIPort)

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

HAL_SetSPIChipSelectActiveLow(SPIPort)

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

HAL_SetSPIHandle(SPIPort, Int32)

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

HAL_SetSPIOpts(SPIPort, Int32, Int32, Int32)

Declaration
void HAL_SetSPIOpts(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

HAL_SetSPISpeed(SPIPort, Int32)

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

HAL_StartSPIAutoRate(SPIPort, Double)

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

HAL_StartSPIAutoTrigger(SPIPort, Int32, AnalogTriggerType, Int32, Int32)

Declaration
void HAL_StartSPIAutoTrigger(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

HAL_StopSPIAuto(SPIPort)

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

HAL_TransactionSPI(SPIPort, Byte*, Byte*, Int32)

Declaration
int HAL_TransactionSPI(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

HAL_WriteSPI(SPIPort, Byte*, Int32)

Declaration
int HAL_WriteSPI(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