Skip to main content

IDacControllerProvider Interface

Namespace: GHIElectronics.TinyCLR.Devices.Dac.Provider · Assembly: GHIElectronics.TinyCLR.Devices.Dac

Provider contract for a DAC controller. Most users call DacController / DacChannel directly; implement this interface only when supplying a custom or virtual DAC.

public interface IDacControllerProvider : IDisposable

Properties

ChannelCount

int ChannelCount { get; }

Total number of channels exposed by this controller.

ResolutionInBits

int ResolutionInBits { get; }

Sample width in bits.

MinValue

int MinValue { get; }

Smallest raw value accepted by Write(int, int).

MaxValue

int MaxValue { get; }

Largest raw value accepted by Write(int, int).

Methods

OpenChannel(int channel)

void OpenChannel(int channel)

Acquires exclusive access to the specified channel.

ParameterTypeDescription
channelintController-relative channel index.

CloseChannel(int channel)

void CloseChannel(int channel)

Releases a previously opened channel.

ParameterTypeDescription
channelintController-relative channel index.

Write(int channel, int value)

void Write(int channel, int value)

Writes a raw code to the channel.

ParameterTypeDescription
channelintController-relative channel index.
valueintOutput code.