[Overview][Resource strings][Constants][Types][Classes][Index] Reference for unit 'fpspi' (#pascalio)

TSPILinuxDevice

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

SPI device for Linux

Declaration

Source position: fpspi.pas line 91

type TSPILinuxDevice = class(TSPIDevice)

protected

  function GetBitsPerWord; override;

  

  function GetLSBFirst; override;

  

  function GetMaxFrequency; override;

  

  function GetMode; override;

  

  procedure SetBitsPerWord(); override;

  

  procedure SetLSBFirst(); override;

  

  procedure SetMaxFrequency(); override;

  

  procedure SetMode(); override;

  

  function GetDevicePath;

  

Returns the SPI devices file name in file system

  procedure DoIoCtlError();

  

public

  constructor Create();

  

Instantiates a new SPI device

  destructor Destroy; override;

  

  function Read(); override;

  

Half duplex read

  function Write(); override;

  

Half duplex write

  procedure ReadAndWrite();

  

Bidirectional read and write

  property Bus: LongWord; [r]

  

The bus ID

  property ChipSelect: LongWord; [r]

  

ID of the ChipSelect

end;

Inheritance

TSPILinuxDevice

  

SPI device for Linux

|

TSPIDevice

  

Abstract SPI device

|

TObject

Description

This class implements the TSPIDevice using the file system interface of the Linux kernel.


Documentation generated on: 2020-05-22