[Overview][Resource strings][Constants][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
SPI device for Linux
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; |
|
SPI device for Linux |
|
| | ||
|
Abstract SPI device |
|
| | ||
TObject |
This class implements the TSPIDevice using the file system interface of the Linux kernel.