dac.h File Reference

DAC peripheral driver interface definition. More...

Detailed Description

DAC peripheral driver interface definition.

Author
Simon Brummer simon.nosp@m..bru.nosp@m.mmer@.nosp@m.haw-.nosp@m.hambu.nosp@m.rg.d.nosp@m.e
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file dac.h.

#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.
 

Enumerations

enum  { DAC_OK = 0, DAC_NOLINE = -1 }
 Return codes used by the DAC driver interface.
 

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...