ChibiOS/HAL
6.1.0
|
DAC Driver macros and structures. More...
#include "hal_dac_lld.h"
Go to the source code of this file.
Macros | |
DAC configuration options | |
#define | DAC_USE_WAIT TRUE |
Enables synchronous APIs. More... | |
#define | DAC_USE_MUTUAL_EXCLUSION TRUE |
Enables the dacAcquireBus() and dacReleaseBus() APIs. More... | |
Low level driver helper macros | |
#define | _dac_wait_s(dacp) osalThreadSuspendS(&(dacp)->thread) |
Waits for operation completion. More... | |
#define | _dac_reset_i(dacp) osalThreadResumeI(&(dacp)->thread, MSG_RESET) |
Resumes a thread waiting for a conversion completion. More... | |
#define | _dac_reset_s(dacp) osalThreadResumeS(&(dacp)->thread, MSG_RESET) |
Resumes a thread waiting for a conversion completion. More... | |
#define | _dac_wakeup_isr(dacp) |
Wakes up the waiting thread. More... | |
#define | _dac_timeout_isr(dacp) |
Wakes up the waiting thread with a timeout message. More... | |
#define | _dac_isr_half_code(dacp) |
Common ISR code, half buffer event. More... | |
#define | _dac_isr_full_code(dacp) |
Common ISR code, full buffer event. More... | |
#define | _dac_isr_error_code(dacp, err) |
Common ISR code, error event. More... | |
Enumerations |
Functions | |
void | dacInit (void) |
DAC Driver initialization. More... | |
void | dacObjectInit (DACDriver *dacp) |
Initializes the standard part of a DACDriver structure. More... | |
void | dacStart (DACDriver *dacp, const DACConfig *config) |
Configures and activates the DAC peripheral. More... | |
void | dacStop (DACDriver *dacp) |
Deactivates the DAC peripheral. More... | |
void | dacPutChannelX (DACDriver *dacp, dacchannel_t channel, dacsample_t sample) |
Outputs a value directly on a DAC channel. More... | |
void | dacStartConversion (DACDriver *dacp, const DACConversionGroup *grpp, dacsample_t *samples, size_t depth) |
Starts a DAC conversion. More... | |
void | dacStartConversionI (DACDriver *dacp, const DACConversionGroup *grpp, dacsample_t *samples, size_t depth) |
Starts a DAC conversion. More... | |
void | dacStopConversion (DACDriver *dacp) |
Stops an ongoing conversion. More... | |
void | dacStopConversionI (DACDriver *dacp) |
Stops an ongoing conversion. More... | |
DAC Driver macros and structures.
Definition in file hal_dac.h.