GetAttribute - method of the AtouchX object
Detects informatiou about the driver.
The method detects available information about the driver and returns it in the DATA variable.
Integer GetAttribute(Integer AttrID, Variant DATA)
|AttrID||(Integer) Identifier of the type of information we want to read.|
|DATA||[for read and write](Variant) Variable where the result is stored.|
- Driver version in BCD
(returns the same value as the GetKernelVersion
method). Can always be called, regardless of driver initialization.
1 = attrRdBufSize - Total size of the read buffer (in frames). The value can be influenced during initialization by the RQ.RdBuff.Size parameter in the HW description.
2 = attrWrBufSize - Total size of the write buffer (in frames). The value can be influenced during initialization by the RQ.WrBuff.Size parameter in the HW description.
3 = attrRdBufFree - Current number of free frames in the read buffer.
4 = attrWrBufFree - Current number of free frames in the write buffer.