I2C Plugin for Xojo

I2C.Adapter Class (console safe)

Class for I2C bus adapter.

Object
   Adapter

class I2C.Adapter

Constructors

Adapter (console safe) Private constructor.

Methods

Close (console safe) Closes the bus.
shared OpenAttempts to Open the I2C bus.
ProcessBlockCall (console safe) Runs an SMBus “Block write, block read process call” transaction, using string.
ProcessCall (console safe) Runs an SMBus “Process call” transaction.
ProcessMemoryBlockCall (console safe) Runs an SMBus “Block write, block read process call” transaction, using MemoryBlock.
ReadBlock (console safe) Runs an SMBus “Block read” transaction, using string.
ReadByte (console safe) Runs an SMBus “Read byte” transaction.
ReadBytes (console safe) Reads number of bytes bytes returning them as array of UInt8.
ReadFunctionality (console safe) Reads the capabilities of the I2C bus.
ReadMemoryBlock (console safe) Runs an SMBus “Block read” transaction, using MemoryBlock.
ReadWord (console safe) Runs an SMBus “Read word” transaction.
ReceiveByte (console safe) Runs an SMBus “Receive byte” transaction.
Scan (console safe) Scans the I2C bus, returning array of found devices.
SendByte (console safe) Runs an SMBus “Send byte” transaction.
SetAddress (console safe) Sets address of device to communicate with.
WriteBlock (console safe) Runs an SMBus “Block write” transaction, using string.
WriteByte (console safe) Runs an SMBus “Write byte” transaction.
WriteMemoryBlock (console safe) Runs an SMBus “Block write” transaction, using memory block,
WriteQuick (console safe) Run as SMBus “Quick command” transaction.
WriteWord (console safe) Runs an SMBus “Write word” transaction.

Supported Platforms:

  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • Unsupported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit