blob: 596daf5af0695602f2fa09f2da829060ee88fddc [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 Pettib23501c2014-01-06 16:57:52 -080017
Daniel Pettid6ff3d52014-01-02 11:24:39 -080018};
19
Daniel Pettife475252014-01-05 14:15:16 -080020} // namespace bbb
Daniel Pettid6ff3d52014-01-02 11:24:39 -080021
22#endif