.value Method

Function:

For the currently selected SSI channel (see ssi.channel), outputs a data word of up to 16 bits and simultaneously inputs a data word of the same length.

Syntax:

ssi.value(txdata as word, len as byte) as word

Returns:

16-bit value containing the data received from the slave device, the number of bits received from the slave device will be equal to the len argument, and these data bits will be right-aligned within the returned 16-bit word.

See Also:

Sending and Receiving Data, ssi.str


Part

Description

txdata

Data to output to the slave device. The number of rightmost bits equal to the len argument will be sent.

len

Number of data bits to send to and receive from the slave device.


Details

The data input/output direction (least significant bit first or most significant bit first) is defined by the ssi.direction property.

This method can be invoked only when ssi.enabled = 1 — YES.


.value Method

Details