ChibiOS/HAL 9.0.0
hal_dac_lld.h File Reference

PLATFORM DAC subsystem low level driver header. More...

Go to the source code of this file.

Macros

#define DAC_MAX_CHANNELS   2
 Maximum number of DAC channels per unit.
#define dac_lld_driver_fields
 Low level fields of the DAC driver structure.
#define dac_lld_config_fields
 Low level fields of the DAC configuration structure.
#define dac_lld_conversion_group_fields
 Low level fields of the DAC group configuration structure.
Configuration options
#define PLATFORM_DAC_USE_DAC1   FALSE
 DAC1 CH1 driver enable switch.

Typedefs

typedef uint32_t dacchannel_t
 Type of a DAC channel index.
typedef uint16_t dacsample_t
 Type representing a DAC sample.

Enumerations

enum  dacerror_t { DAC_ERR_DMAFAILURE = 0 , DAC_ERR_UNDERFLOW = 1 }
 Possible DAC failure causes. More...

Functions

void dac_lld_init (void)
 Low level DAC driver initialization.
void dac_lld_start (DACDriver *dacp)
 Configures and activates the DAC peripheral.
void dac_lld_stop (DACDriver *dacp)
 Deactivates the DAC peripheral.
void dac_lld_put_channel (DACDriver *dacp, dacchannel_t channel, dacsample_t sample)
 Outputs a value directly on a DAC channel.
void dac_lld_start_conversion (DACDriver *dacp)
 Starts a DAC conversion.
void dac_lld_stop_conversion (DACDriver *dacp)
 Stops an ongoing conversion.

Detailed Description

PLATFORM DAC subsystem low level driver header.

Definition in file hal_dac_lld.h.