Daniel Petti | d6ff3d5 | 2014-01-02 11:24:39 -0800 | [diff] [blame] | 1 | #ifndef BBB_CAPE_SRC_BBB_GPO_H_ |
| 2 | #define BBB_CAPE_SRC_BBB_GPO_H_ |
| 3 | |
| 4 | #include "gpios.h" |
| 5 | |
| 6 | namespace bbb { |
| 7 | |
| 8 | // Gpios subclass for output pins. |
| 9 | class Gpo : public Pin { |
| 10 | public: |
| 11 | // See the base class for what these args mean. |
| 12 | Gpo(int bank, int pin); |
Daniel Petti | fe47525 | 2014-01-05 14:15:16 -0800 | [diff] [blame^] | 13 | // Sets the pin to either high or low. |
| 14 | // If the argument is true, is sets it high. |
| 15 | // Otherwise, it sets it low. |
| 16 | bool Set(const bool high); |
Daniel Petti | d6ff3d5 | 2014-01-02 11:24:39 -0800 | [diff] [blame] | 17 | }; |
| 18 | |
Daniel Petti | fe47525 | 2014-01-05 14:15:16 -0800 | [diff] [blame^] | 19 | } // namespace bbb |
Daniel Petti | d6ff3d5 | 2014-01-02 11:24:39 -0800 | [diff] [blame] | 20 | |
| 21 | #endif |