Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
19
#ifndef DAC_DDS_PARAMS_H
20
#define DAC_DDS_PARAMS_H
21
22
#include "board.h"
23
#include "
macros/units.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
#ifndef DAC_DDS_PARAM_DAC
34
#define DAC_DDS_PARAM_DAC DAC_LINE(0)
35
#endif
36
#ifndef DAC_DDS_PARAM_TIMER
37
#define DAC_DDS_PARAM_TIMER (TIMER_NUMOF - 1)
38
#endif
39
#ifndef DAC_DDS_PARAM_TIMER_HZ
40
#define DAC_DDS_PARAM_TIMER_HZ MHZ(1)
41
#endif
42
43
#ifndef DAC_DDS_PARAMS
44
#define DAC_DDS_PARAMS { .dac = DAC_DDS_PARAM_DAC, \
45
.timer = DAC_DDS_PARAM_TIMER, \
46
.timer_hz = DAC_DDS_PARAM_TIMER_HZ, \
47
}
48
#endif
54
static
const
dac_dds_params_t
dac_dds_params
[] =
55
{
56
DAC_DDS_PARAMS
57
};
58
62
#define DAC_DDS_NUMOF ARRAY_SIZE(dac_dds_params)
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif
/* DAC_DDS_PARAMS_H */
dac_dds_params
static const dac_dds_params_t dac_dds_params[]
DAC DDS configuration.
Definition
dac_dds_params.h:54
dac_dds_params_t
Configuration struct for a DAC DDS channel.
Definition
dac_dds.h:67
units.h
Unit helper macros.
Generated on Thu Nov 21 2024 13:53:00 by
1.9.8