Scanner |
public uint[] TransceiveEnhanced( int head, Axes axes, uint[] commands, int timeoutMilliseconds = 1 )
Exception | Condition |
---|---|
ScannerCommunicationException | see 12.7 Exceptions and Errors |
The array entries must be in order of the enum-values of Axes.
For example when sending commands for X and Y, the array must consist of exactly 2 entries, with the command for X at index 0, and the command for Y at index 1.
To send a command to the ZoomZ axis only, the array must consist of a single item: the command for ZoomZ.
The command is 16-bits wide, and must be left-aligned within its frame.
For example, the "Echo" command must be left-shifted by 4 bits, i.e. 0x21AB << 4 = 0x21AB0.
NOTE that the symbolic constants in the RAYLASE.SPICE3.ScannerEnhancedProtocol namespace are already defined with the necessary alignment!
For example, the "Echo" command will answer with 0xAB540: callers expecting a 16-bit value must right-shift the raw response value(s) by 4 bits.