blob: 701e2144576d4b02274c53decf4fb0df84bafe71 [file] [log] [blame]
Daniel Pettid6ff3d52014-01-02 11:24:39 -08001#ifndef BBB_CAPE_SRC_BBB_GPO_H_
2#define BBB_CAPE_SRC_BBB_GPO_H_
3
4#include "gpios.h"
5
6namespace bbb {
7
8// Gpios subclass for output pins.
9class Gpo : public Pin {
10 public:
11 // See the base class for what these args mean.
12 Gpo(int bank, int pin);
Daniel Pettife475252014-01-05 14:15:16 -080013 // 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 Pettid6ff3d52014-01-02 11:24:39 -080017};
18
Daniel Pettife475252014-01-05 14:15:16 -080019} // namespace bbb
Daniel Pettid6ff3d52014-01-02 11:24:39 -080020
21#endif