.str Method

Function:

For the currently selected SSI channel (see ssi.channel), outputs a string of byte data to the slave device and simultaneously inputs the same amount of data from the slave device.

Syntax:

ssi.str(byref txdata as string, ack_bit as no_yes) as string

Returns:

A string of the same length as txdata or less if the transmission ended prematurely due to the acknowledgment error.

See Also:

Sending and Receiving Data, ssi.value


Part

Description

txdata

The string to send to the slave device.

ack_bit

  • 0 — NO: transmit/receive byte data as 8-bit words, without the use of the acknowledgment bit.
  • 1 — YES: transmit/receive byte data as 9-bit words comprising 8 bits of data and the acknowledgment bit.

Details

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


.str Method

Details