Statistics
| Branch: | Tag: | Revision:

amiro-lld / include / alld_pklcs1212e4001.h @ f0ca400f

History | View | Annotate | Download (1.64 KB)

1 d6728c5b Thomas Schöpping
/*
2
AMiRo-LLD is a compilation of low-level hardware drivers for the Autonomous Mini Robot (AMiRo) platform.
3
Copyright (C) 2016..2018  Thomas Schöpping et al.
4

5
This program is free software: you can redistribute it and/or modify
6 f0ca400f Thomas Schöpping
it under the terms of the GNU Lesser General Public License as published by
7 d6728c5b Thomas Schöpping
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9

10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 f0ca400f Thomas Schöpping
GNU Lesser General Public License for more details.
14 d6728c5b Thomas Schöpping

15 f0ca400f Thomas Schöpping
You should have received a copy of the GNU Lesser General Public License
16 d6728c5b Thomas Schöpping
along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef _AMIROLLD_PKLCS1212E4001_H_
20
#define _AMIROLLD_PKLCS1212E4001_H_
21
22
#include <amiro-lld.h>
23
24
#if defined(AMIROLLD_CFG_USE_PKLCS1212E4001) || defined(__DOXYGEN__)
25
26
/**
27
 * @brief   Specified frequency of the PKLCS1212E4001.
28
 */
29
#define PKLCS1212E4001_LLD_FREQUENCY_SPEC       4000
30
31
/**
32
 * @brief   Minimum frequency for the buzzer to sound.
33
 */
34
#define PKLCS1212E4001_LLD_FREQUENCY_MIN        2000
35
36
/**
37
 * @brief   Maximum frequency for the buzzer to sound.
38
 */
39
#define PKLCS1212E4001_LLD_FREQUENCY_MAX        6000
40
41
#ifdef __cplusplus
42
extern "C" {
43
#endif
44
  apalExitStatus_t pklcs1212e4001_lld_checkPWMconfiguration(apalPWMDriver_t* pwm);
45
  apalExitStatus_t pklcs1212e4001_lld_enable(apalPWMDriver_t* pwm, const apalPWMchannel_t channel, const bool enable);
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif /* defined(AMIROLLD_CFG_USE_PKLCS1212E4001) */
51
52
#endif /* _AMIROLLD_PKLCS1212E4001_H_ */