Skip to main content

Enum DuplexType

Describes how read and write buffers are sent.

Half-duplex is the most common and means that the write data is clocked (sent) out, and then the read data is clocked in only after write has finished. Protocols that only have a single data line (such as I2C) can only support half-duplex.

Full-duplex is supported only on protocols that use two or more data lines (such as SPI) and means that data is clocked in at the same time as it is clocked out. Full-duplex peripherals are much less common than half-duplex.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public enum DuplexType

Fields

Half

Half-duplex. Write data is sent, and then read data is read in.

View Source
Declaration
Half = 0

Full

Full-duplex. Write and read data buffers are sent and received at the same time.

View Source
Declaration
Full = 1