Skip to main content

CdcStream Class

NuGet: GHIElectronics.TinyCLR.Devices.UsbClient
Assembly: GHIElectronics.TinyCLR.Devices.UsbClient
Namespace: GHIElectronics.TinyCLR.Devices.UsbClient

Stream for reading and writing data over a CDC connection.

public class CdcStream : RawDevice.RawStream

Properties

DataAvailable

public override bool DataAvailable { get; }

Whether or not there is data available to read.

Methods

Write(byte[] buffer, int offset, int count)

public override void Write(byte[] buffer, int offset, int count)

Writes data to the stream.

ParameterTypeDescription
bufferbyte[]The buffer from which to write.
offsetintThe offset into the buffer at which to begin writing.
countintThe number of bytes to write.