Expand description
Support for the digital to Analog converter (DAC) peripheral.
Structs§
- Dac
- Represents a Digital to Analog Converter (DAC) peripheral.
- DacConfig
- Sawtooth
Config - 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.
- High
Frequency Mode - High frequency interface mode selection. Used in MCR See G4 RM, section 22.7.16
- Sawtooth
Direction - 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
- Wave
Generation - 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