I2Cmsg.buffer constructor

I2Cmsg.buffer(
  1. int addr,
  2. List<I2CmsgFlags> flags,
  3. List<int> predefined
)

Constructs an I2C message with the I2C device address addr, flags list and a predefined transfer buffer. An empty flags list results NativeI2Cmsg.flags = 0.

The message flags specify whether the message is a read (I2C_M_RD) or write (0) transaction, as well as additional options selected by the bitwise OR of their bitmasks.

Implementation

I2Cmsg.buffer(this.addr, this.flags, this.predefined)
    : len = predefined.length;