Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
dac_dds_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Beuth Hochschule für Technik Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
21
#include "board.h"
22
#include "
macros/units.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#ifndef DAC_DDS_PARAM_DAC
33
#define DAC_DDS_PARAM_DAC DAC_LINE(0)
34
#endif
35
#ifndef DAC_DDS_PARAM_TIMER
36
#define DAC_DDS_PARAM_TIMER (TIMER_NUMOF - 1)
37
#endif
38
#ifndef DAC_DDS_PARAM_TIMER_HZ
39
#define DAC_DDS_PARAM_TIMER_HZ MHZ(1)
40
#endif
41
42
#ifndef DAC_DDS_PARAMS
43
#define DAC_DDS_PARAMS { .dac = DAC_DDS_PARAM_DAC, \
44
.timer = DAC_DDS_PARAM_TIMER, \
45
.timer_hz = DAC_DDS_PARAM_TIMER_HZ, \
46
}
47
#endif
53
static
const
dac_dds_params_t
dac_dds_params
[] =
54
{
55
DAC_DDS_PARAMS
56
};
57
61
#define DAC_DDS_NUMOF ARRAY_SIZE(dac_dds_params)
62
63
#ifdef __cplusplus
64
}
65
#endif
66
dac_dds_params
static const dac_dds_params_t dac_dds_params[]
DAC DDS configuration.
Definition:
dac_dds_params.h:53
dac_dds_params_t
Configuration struct for a DAC DDS channel.
Definition:
dac_dds.h:66
units.h
Unit helper macros.
Generated on Mon Jun 30 2025 18:46:45 by
1.9.1