Module dac

Module dac 

Source
Expand description

Support for the digital to Analog converter (DAC) peripheral.

Structs§

Dac
Represents a Digital to Analog Converter (DAC) peripheral.
DacConfig
SawtoothConfig
Sawtooth Generation configuration for the generate_sawtooth() method

Enums§

DacBits
Three options are available to set DAC precision. Sets the DHR8R1 etc register contents.
DacChannel
Select the channel to output to. Most MCUs only use 2 channels.
DacMode
Sets the MCR register, Mode1 and Mode2 fields.
HighFrequencyMode
High frequency interface mode selection. Used in MCR See G4 RM, section 22.7.16
SawtoothDirection
Trigger
Trigger selection on G4, used by TSELx and Sawtooth generation ST[INC|RST]TRIGSELx Section 11.3.4 Table 66 - DAC trigger interconnect table
WaveGeneration
Select a waveform generation. Sets CR, WAVE1 and WAVE2 for Channel 1 and Channel 2 repectively. See G4 RM, section 22.7.1 noise/triangle wave generation enable