WOLFRAM SYSTEM MODELER

writeByte

Wolfram Language

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

Information

Writes a single byte to the specified register. When writting to some I2C devices, it is not necessary to provide the register value. In such case, provide the input register value of 0.

Syntax

(new_state, new_t) = writeByte(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 (2)

new_state

Type: State

new_t

Type: Transaction