diff options
Diffstat (limited to 'src/GPIO/GpOutPort.h')
-rw-r--r-- | src/GPIO/GpOutPort.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/GPIO/GpOutPort.h b/src/GPIO/GpOutPort.h index fbae879a..cf90a9ea 100644 --- a/src/GPIO/GpOutPort.h +++ b/src/GPIO/GpOutPort.h @@ -13,6 +13,10 @@ #include <GCodes/GCodeResult.h> #include <ObjectModel/ObjectModel.h> +#if SUPPORT_REMOTE_COMMANDS + class CanMessageGenericParser; +#endif + class GpOutputPort INHERIT_OBJECT_MODEL { public: @@ -29,6 +33,11 @@ public: GCodeResult WriteAnalog(uint32_t gpioPortNumber, bool isServo, float pwm, const GCodeBuffer& gb, const StringRef& reply) noexcept; GCodeResult Configure(uint32_t gpioNumber, bool isServo, GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException); +#if SUPPORT_REMOTE_COMMANDS + GCodeResult AssignFromRemote(uint32_t gpioPortNumber, const CanMessageGenericParser& parser, const StringRef& reply) noexcept; + void WriteAnalog(float pwm) noexcept; +#endif + #ifdef PCCB void Assign(const char *pinName) noexcept; #endif |