[Overview][Resource strings][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Threadsafe I2C Bus
Source position: fpi2c.pas line 121
type TI2CBus = class(TThread) |
||
protected |
||
|
||
fThreadWakeup: PRTLEvent; |
|
|
procedure Execute; override; |
|
|
procedure ProcessObject(); virtual; abstract; |
|
|
|
||
public |
||
constructor Create(); virtual; |
|
|
destructor Destroy; override; |
|
|
procedure QueueObject(); |
|
|
function ReadByte(); |
|
|
procedure WriteByte(); |
|
|
function ReadRegByte(); |
|
|
function ReadRegWord(); |
|
|
procedure WriteRegByte(); |
|
|
procedure WriteRegWord(); |
|
|
function ReadBlockData(); |
|
|
procedure WriteBlockData(); |
|
|
property Bus: LongWord; [r] |
|
|
end; |
|
Threadsafe I2C Bus |
|
| | ||
TThread |
||
? | ||
TObject |
One I2C bus is connected to several devices. This object is threadsafe.