BIG deep clean
This commit is contained in:
@@ -2,22 +2,22 @@
|
||||
* \brief GPIO
|
||||
*/
|
||||
/*
|
||||
PIP - Platform Independent Primitives
|
||||
PIP - Platform Independent Primitives
|
||||
GPIO
|
||||
Andrey Bychkov work.a.b@yandex.ru, Ivan Pelipenko peri4ko@yandex.ru
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef PIGPIO_H
|
||||
@@ -38,16 +38,12 @@ public:
|
||||
In /** Input direction (read) */,
|
||||
Out /** Output direction (write) */
|
||||
};
|
||||
//enum PullUpDownControl {NoPull, PullUp, PullDown};
|
||||
|
||||
|
||||
//! \brief Returns singleton object of %PIGPIO
|
||||
static PIGPIO * instance();
|
||||
|
||||
|
||||
//! \brief Initialize pin \"gpio_num\" for \"dir\" mode
|
||||
void initPin(int gpio_num, Direction dir = PIGPIO::In);//, PullUpDownControl pull);
|
||||
|
||||
void initPin(int gpio_num, Direction dir = PIGPIO::In);
|
||||
|
||||
//! \brief Set pin \"gpio_num\" value to \"value\"
|
||||
void pinSet (int gpio_num, bool value);
|
||||
@@ -61,7 +57,6 @@ public:
|
||||
//! \brief Returns pin \"gpio_num\" state
|
||||
bool pinState(int gpio_num);
|
||||
|
||||
|
||||
//! \brief Starts watch for pin \"gpio_num\".
|
||||
//! \details Pins watching starts only with \a PIThread::start() function!
|
||||
//! This function doesn`t affect thread state
|
||||
@@ -77,7 +72,6 @@ public:
|
||||
//! This function doesn`t affect thread state
|
||||
void clearWatch();
|
||||
|
||||
|
||||
EVENT2(pinChanged, int, gpio_num, bool, new_value)
|
||||
|
||||
//! \events
|
||||
|
||||
Reference in New Issue
Block a user