WOLFRAM SYSTEM MODELER

readByte

Wolfram Language

In[1]:=
SystemModel["ModelPlug.Internal.I2C.readByte"]
Out[1]:=

Information

Reads a single byte from the given register. In some cases, the I2C device can be read without providing a register. In such case, the functions must be called with the register value 0.

This function is equivalent to readUInt8.

Syntax

(new_state, new_t, data_out) = readByte(device, state, t, stage, register, data)

Inputs (6)

device

Type: Device

state

Type: State

t

Type: Transaction

stage

Type: Stage

register

Type: Integer

data

Type: Integer

Outputs (3)

new_state

Type: State

new_t

Type: Transaction

data_out

Type: Integer