DacController Class
Package: GHIElectronics.Endpoint.Devices.Dac
Namespace: GHIElectronics.Endpoint.Devices.Dac
Endpoint's DAC (analog outputs), with the same API as TinyCLR. Opening a channel makes its pin an analog output; closing it switches the output off and puts the pin back as it was.
class DacController : public IDisposable {};
Properties
ChannelCount
int32_t ChannelCount() const;
The number of channels in the chip (channel numbers start at 0)
Returns int
MaxValue
int32_t MaxValue() const;
The value for the reference voltage (3.3 V)
Returns int
MinValue
int32_t MinValue() const;
The value for 0 V
Returns int
ResolutionInBits
int32_t ResolutionInBits() const;
Sample width in bits
Returns int
Methods
Dispose()
void Dispose();
Nothing to release: each channel is released when it is disposed
FromName(string name)
static DacController FromName(const std::string& name);
The DAC named name: EPM815.Dac.Id
Returns DacController
GetDefault()
static DacController GetDefault();
The board's DAC
Returns DacController
OpenChannel(int channelNumber)
DacChannel OpenChannel(int32_t channelNumber);
Opens a channel for output: EPM815.Dac.PA4 or EPM815.Dac.PA5
Returns DacChannel