Platforms to show: All Mac Windows Linux Cross-Platform

Back to PhidgetDataAdapterMBS class.

PhidgetDataAdapterMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constructor.

PhidgetDataAdapterMBS.i2cComplexTransaction(address as Integer, I2CPacketString as String, Data as MemoryBlock, recvDataLen as Integer) as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Initiates a set of write and read transactions to happen in quick succession.

address: The address of the I2C device
I2CPacketString: Specify the bytes of your I2C packet using 's' for start, 'R' for read, 'T' for write, and 'p' for stop. Only one stop condition per call is supported.

For example, if you wanted to write two bytes, generate a repeat start, write one more byte, then read three bytes, the string would be "sTTsTsRRRp".

You can also use numbers to indicate the number of bytes, e.g. "sT2sTsR3p"
data: The entire set of data to send, in order from first to last. The length of this data must match the total number of bytes specified to be sent in the I2CPacketString. The byte length must be ≤ MaxSendPacketLength.
recvDataLen: Specifies the length of the recvData array.

Returns the data read.

See also:

PhidgetDataAdapterMBS.i2cComplexTransaction(address as Integer, I2CPacketString as String, Data as String, recvDataLen as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Initiates a set of write and read transactions to happen in quick succession.

address: The address of the I2C device
I2CPacketString: Specify the bytes of your I2C packet using 's' for start, 'R' for read, 'T' for write, and 'p' for stop. Only one stop condition per call is supported.

For example, if you wanted to write two bytes, generate a repeat start, write one more byte, then read three bytes, the string would be "sTTsTsRRRp".

You can also use numbers to indicate the number of bytes, e.g. "sT2sTsR3p"
data: The entire set of data to send, in order from first to last. The length of this data must match the total number of bytes specified to be sent in the I2CPacketString. The byte length must be ≤ MaxSendPacketLength.
recvDataLen: Specifies the length of the recvData array.

Returns the data read.

See also:

PhidgetDataAdapterMBS.i2cSendReceive(address as Integer, Data as MemoryBlock, recvDataLen as Integer) as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Write a number of bytes and immediately read a number of bytes over I2C.

address: The address of the I2C device
data: The data to send. Byte length must be ≤ MaxSendPacketLength.
recvDataLen: The number of bytes to receive. Must be ≤ MaxReceivePacketLength.

Returns the data read.

See also:

PhidgetDataAdapterMBS.i2cSendReceive(address as Integer, Data as String, recvDataLen as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Write a number of bytes and immediately read a number of bytes over I2C.

address: The address of the I2C device
data: The data to send. Byte length must be ≤ MaxSendPacketLength.
recvDataLen: The number of bytes to receive. Must be ≤ MaxReceivePacketLength.

Returns the data read.

See also:

PhidgetDataAdapterMBS.sendPacket(Data as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Transmits a packet of data using the selected protocol information on the corresponding communication terminals to any connected device(s).

data: The data to send. Length must be ≤ MaxSendPacketLength.

See also:

PhidgetDataAdapterMBS.sendPacket(Data as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Transmits a packet of data using the selected protocol information on the corresponding communication terminals to any connected device(s).

data: The data to send. Length must be ≤ MaxSendPacketLength.

See also:

PhidgetDataAdapterMBS.sendPacketAsync(Data as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Transmits a packet of data using the selected protocol information on the corresponding communication terminals to any connected device(s).

Data: The data to send.

Calls sendPacketAsyncCompleted event later with the result.

See also:

PhidgetDataAdapterMBS.sendPacketAsync(Data as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Transmits a packet of data using the selected protocol information on the corresponding communication terminals to any connected device(s).

Data: The data to send.

Calls sendPacketAsyncCompleted event later with the result.

See also:

PhidgetDataAdapterMBS.sendPacketWaitResponse(Data as MemoryBlock, recvDataLen as Integer = -1) as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sends a packet and waits for a corresponding response from the external device, until the timeout elapses.

data: The data to send. Byte length must be ≤ MaxSendPacketLength.
recvDataLen: Specifies the length of the recvData array. If <= 0, we check MaxReceivePacketLength for a length.

Returns the data read.

See also:

PhidgetDataAdapterMBS.sendPacketWaitResponse(Data as String, recvDataLen as Integer = -1) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sends a packet and waits for a corresponding response from the external device, until the timeout elapses.

data: The data to send. Byte length must be ≤ MaxSendPacketLength.
recvDataLen: Specifies the length of the recvData array. If <= 0, we check MaxReceivePacketLength for a length.

Returns the data read.

See also:

The items on this page are in the following plugins: MBS Phidgets Plugin.


The biggest plugin in space...