STM32F10x library
Functions
dac.c File Reference

DAC routines. More...

#include <stm32f10x.h>
#include <stm32f10x_dac.h>

Functions

void dac_set (uint8_t n, uint16_t v)
 Set DAC value. More...
 
void dac_init (uint8_t n)
 Init DAC. More...
 

Detailed Description

DAC routines.

Author
Matej Kogovsek (matej.nosp@m.@ham.nosp@m.radio.nosp@m..si)
Note
This file is part of mat-stm32f1-lib

Function Documentation

void dac_init ( uint8_t  n)

Init DAC.

Parameters
[in]nDAC channel
void dac_set ( uint8_t  n,
uint16_t  v 
)

Set DAC value.

Parameters
[in]nDAC channel
[in]vValue