DAC peripheral driver interface definition. More...
DAC peripheral driver interface definition.
Definition in file dac.h.
#include <stdint.h>
#include <limits.h>
#include "periph_cpu.h"
#include "periph_conf.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... | |