Treehopper C# API
I2cMuxPort Class Reference

I2C mux port More...

Inheritance diagram for I2cMuxPort:
I2C

Public Member Functions

Task< byte[]> SendReceiveAsync (byte address, byte[] dataToWrite, byte numBytesToRead)
 Automatically mux this port and send/receive data to the upstream port More...
 

Properties

bool Enabled [get, set]
 Whether to enable this mux port. More...
 
double Speed [get, set]
 The speed to use. More...
 

Detailed Description

I2C mux port

Member Function Documentation

◆ SendReceiveAsync()

Task<byte[]> SendReceiveAsync ( byte  address,
byte []  dataToWrite,
byte  numBytesToRead 
)

Automatically mux this port and send/receive data to the upstream port

Parameters
addressThe slave address
dataToWriteThe data to write
numBytesToReadNumber of bytes to read
Returns

Implements I2C.

Property Documentation

◆ Enabled

bool Enabled
getset

Whether to enable this mux port.

This property has no effect.

◆ Speed

double Speed
getset

The speed to use.


The documentation for this class was generated from the following file: