Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
leds.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_LEDS_HPP_
25
#define TAPROOT_LEDS_HPP_
26
27
#include <cstdint>
28
29
#include "
tap/util_macros.hpp
"
30
31
namespace
tap
32
{
33
namespace
gpio
34
{
39
class
Leds
40
{
41
public
:
42
Leds
() =
default
;
43
DISALLOW_COPY_AND_ASSIGN
(
Leds
)
44
mockable
~
Leds
() = default;
45
49
enum
LedPin
50
{
51
Green
,
52
Red
,
53
Blue
54
};
55
60
mockable
void
init
();
61
71
mockable
void
set
(
LedPin
pin,
bool
isSet);
72
};
// class Leds
73
74
}
// namespace gpio
75
76
}
// namespace tap
77
78
#endif
// TAPROOT_LEDS_HPP_
tap::gpio::Leds
Definition
leds.hpp:40
tap::gpio::Leds::set
mockable void set(LedPin pin, bool isSet)
Definition
leds.cpp:43
tap::gpio::Leds::LedPin
LedPin
Definition
leds.hpp:50
tap::gpio::Leds::Green
@ Green
Definition
leds.hpp:51
tap::gpio::Leds::Red
@ Red
Definition
leds.hpp:52
tap::gpio::Leds::Blue
@ Blue
Definition
leds.hpp:53
tap::gpio::Leds::Leds
Leds()=default
tap::gpio::Leds::init
mockable void init()
Definition
leds.cpp:35
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
leds.hpp
Generated by
1.9.8