blob: 493ddd3eb67dc987b7723707bc08139737689040 [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
Brian Silverman04fac622014-01-26 18:32:15 -08004#include "bbb/gpios.h"
Daniel Pettid6ff3d52014-01-02 11:24:39 -08005
6namespace bbb {
7
8// Gpios subclass for output pins.
Brian Silverman0aa48a92014-01-25 17:10:17 -08009class Gpo : public GpioPin {
Daniel Pettid6ff3d52014-01-02 11:24:39 -080010 public:
Brian Silverman0aa48a92014-01-25 17:10:17 -080011 Gpo(int bank, int pin, bool initial_value = false);
12 // Sets the pin to either high (true) or low (false).
13 void Set(bool high);
Daniel Pettid6ff3d52014-01-02 11:24:39 -080014};
15
Daniel Pettife475252014-01-05 14:15:16 -080016} // namespace bbb
Daniel Pettid6ff3d52014-01-02 11:24:39 -080017
18#endif