dac.h File Reference

DAC peripheral driver interface definition. More...

Detailed Description

#include <stdint.h>
#include <limits.h>
#include "periph_cpu.h"
#include "periph_conf.h"
+ Include dependency graph for dac.h:

Go to the source code of this file.

Macros

#define DAC_UNDEF   (UINT_MAX)
 Default DAC undefined value.
 
#define DAC_LINE(x)   (x)
 Default DAC access macro.
 

Typedefs

typedef unsigned int dac_t
 Define default DAC type identifier.
 

Functions

int8_t dac_init (dac_t line)
 Initialize the given DAC line. More...
 
void dac_set (dac_t line, uint16_t value)
 Write a value onto DAC Device on a given Channel. More...
 
void dac_poweron (dac_t line)
 Enable the given DAC line. More...
 
void dac_poweroff (dac_t line)
 Disable the given DAC line. More...