GetAttribute - method of the AtouchX object
Description:
Detects informatiou about the driver.
The method detects available information about the driver and returns it in the DATA variable.
Syntax:
Integer GetAttribute(Integer AttrID, Variant DATA)
Parameters:
AttrID | (Integer) Identifier of the type of information we want to read. |
DATA | [for read and write] (Variant) Variable where the result is stored. |
---|
Note:
Requested attribute:
0 =
attrVersion - 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.