Class I2sDevice
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
I2sConnectionSettingsConnection 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
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
I2sConnectionSettingsThe 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
SpanByteThe 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
SpanByteThe buffer that contains the data to be written to the I2s device. The data should not include the I2s device address.