Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
analog.hpp
Go to the documentation of this file.
1
/*****************************************************************************/
2
/********** !!! WARNING: CODE GENERATED BY TAPROOT. DO NOT EDIT !!! **********/
3
/*****************************************************************************/
4
5
/*
6
* Copyright (c) 2020-2021 Advanced Robotics at the University of Washington <robomstr@uw.edu>
7
*
8
* This file is part of Taproot.
9
*
10
* Taproot is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* Taproot is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with Taproot. If not, see <https://www.gnu.org/licenses/>.
22
*/
23
24
#ifndef TAPROOT_ANALOG_HPP_
25
#define TAPROOT_ANALOG_HPP_
26
27
#include <cstdint>
28
29
#ifndef PLATFORM_HOSTED
30
#include "modm/platform/adc/adc_1.hpp"
31
#endif
32
33
#include "
tap/util_macros.hpp
"
34
35
namespace
tap
36
{
37
namespace
gpio
38
{
43
class
Analog
44
{
45
public
:
46
Analog
() =
default
;
47
DISALLOW_COPY_AND_ASSIGN
(
Analog
)
48
mockable
~
Analog
() = default;
49
50
// Analog pins
51
enum
Pin
52
{
53
};
54
58
mockable
void
init
();
59
63
mockable
uint16_t
read
(
Analog::Pin
pin)
const
;
64
};
// class Analog
65
}
// namespace gpio
66
67
}
// namespace tap
68
69
#endif
// TAPROOT_ANALOG_HPP_
tap::gpio::Analog
Definition
analog.hpp:44
tap::gpio::Analog::init
mockable void init()
Definition
analog.cpp:35
tap::gpio::Analog::read
mockable uint16_t read(Analog::Pin pin) const
Definition
analog.cpp:42
tap::gpio::Analog::Pin
Pin
Definition
analog.hpp:52
tap::gpio::Analog::Analog
Analog()=default
tap
Definition
ballistics.cpp:29
util_macros.hpp
mockable
#define mockable
Wrap class functions that are not already virtual in this function if you wish to mock them.
Definition
util_macros.hpp:38
DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(Typename)
Definition
util_macros.hpp:27
fang-mcb-project
taproot
src
tap
communication
gpio
analog.hpp
Generated by
1.9.8