Skip to content

Commit

Permalink
Added missing inheritance of public PHP API methods
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-meissner committed Dec 30, 2017
1 parent ede7b10 commit 8e15008
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/SpiRegularInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ class SpiRegularInterface: public AbstractSpiInterface
virtual ~SpiRegularInterface() = default;

void __construct(Php::Parameters &params);
void open();
void close();
Php::Value transfer(Php::Parameters &params);
Php::Value read(Php::Parameters &params);
int write(Php::Parameters &params);

Php::Value getChannel() const;
Php::Value getSpeed() const;
Php::Value getFlags() const;
Php::Value isOpen() const;

void open() {AbstractSpiInterface::open();};
void close() {AbstractSpiInterface::close();};
Php::Value transfer(Php::Parameters &params) {return AbstractSpiInterface::transfer(params);};
Php::Value getSpeed() const {return AbstractSpiInterface::getSpeed();};
Php::Value getFlags() const {return AbstractSpiInterface::getFlags();};
Php::Value isOpen() const {return AbstractSpiInterface::isOpen();};
};

#endif

0 comments on commit 8e15008

Please sign in to comment.