Table of Contents

Class I2sDevice

Namespace
System.Device.I2s
Assembly
System.Device.I2s.dll

The communications channel to a device on an I2s bus.

public class I2sDevice : IDisposable
Inheritance
I2sDevice
Implements
Inherited Members
Extension Methods

Constructors

I2sDevice(I2sConnectionSettings)

Create an I2s Device

public I2sDevice(I2sConnectionSettings settings)

Parameters

settings I2sConnectionSettings

Connection settings

Properties

ConnectionSettings

The connection settings of a device on an I2s bus. The connection settings are immutable after the device is created so the object returned will be a clone of the settings object.

public I2sConnectionSettings ConnectionSettings { get; }

Property Value

I2sConnectionSettings

Methods

Create(I2sConnectionSettings)

Creates a communications channel to a device on an I2s bus running on the current platform

public static I2sDevice Create(I2sConnectionSettings settings)

Parameters

settings I2sConnectionSettings

The connection settings of a device on an I2s bus.

Returns

I2sDevice

A communications channel to a device on an I2s bus

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Finalize()

protected override void Finalize()

Read(SpanByte)

Reads data from the I2s device.

public void Read(SpanByte buffer)

Parameters

buffer SpanByte

The buffer to read the data from the I2s device. The length of the buffer determines how much data to read from the I2s device.

Write(SpanByte)

Writes data to the I2s device.

public void Write(SpanByte buffer)

Parameters

buffer SpanByte

The buffer that contains the data to be written to the I2s device. The data should not include the I2s device address.