diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-11-11 15:02:17 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-11-11 15:02:17 -0500 |
commit | 7772ea4579a45bcf63ebd5e68be66ba1a9c72dfa (patch) | |
tree | 9e1ce52ea97102d3513e519a77d999eac228820b /include/distortos/devices | |
parent | 02b3ff42cccf32617c88c0ca65436b8c9d4f61eb (diff) |
chibios!
Diffstat (limited to 'include/distortos/devices')
-rw-r--r-- | include/distortos/devices/io/InputPin.hpp | 48 | ||||
-rw-r--r-- | include/distortos/devices/io/OutputPin.hpp | 46 |
2 files changed, 0 insertions, 94 deletions
diff --git a/include/distortos/devices/io/InputPin.hpp b/include/distortos/devices/io/InputPin.hpp deleted file mode 100644 index 9838998..0000000 --- a/include/distortos/devices/io/InputPin.hpp +++ /dev/null @@ -1,48 +0,0 @@ -/** - * \file - * \brief InputPin class header - * - * \author Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info - * - * \par License - * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not - * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_ -#define INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_ - -namespace distortos -{ - -namespace devices -{ - -/** - * InputPin class is an interface for single input pin - * - * \ingroup devices - */ - -class InputPin -{ -public: - - /** - * \brief InputPin's destructor - */ - - virtual ~InputPin() = 0; - - /** - * \return current state of pin - */ - - virtual bool get() const = 0; -}; - -} // namespace devices - -} // namespace devices - -#endif // INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_ diff --git a/include/distortos/devices/io/OutputPin.hpp b/include/distortos/devices/io/OutputPin.hpp deleted file mode 100644 index 6651d9d..0000000 --- a/include/distortos/devices/io/OutputPin.hpp +++ /dev/null @@ -1,46 +0,0 @@ -/** - * \file - * \brief OutputPin class header - * - * \author Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info - * - * \par License - * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not - * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef INCLUDE_DISTORTOS_DEVICES_IO_OUTPUTPIN_HPP_ -#define INCLUDE_DISTORTOS_DEVICES_IO_OUTPUTPIN_HPP_ - -#include "distortos/devices/io/InputPin.hpp" - -namespace distortos -{ - -namespace devices -{ - -/** - * OutputPin class is an interface for single output pin - * - * \ingroup devices - */ - -class OutputPin : public InputPin -{ -public: - - /** - * \brief Sets state of pin. - * - * \param [in] state is the new state of pin - */ - - virtual void set(bool state) = 0; -}; - -} // namespace devices - -} // namespace devices - -#endif // INCLUDE_DISTORTOS_DEVICES_IO_OUTPUTPIN_HPP_ |