blob: 893fe4a2b0eb8ef769d1daa30e54ed92675029f6 [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.
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