1 #ifndef MODE_FORWARD_HELPER_HPP
2 #define MODE_FORWARD_HELPER_HPP
12 template <u
int16_t ID,
typename TYPE, u
int16_t OBJ, u
int8_t SUB, u
int16_t CW_MASK>
15 std::shared_ptr<LelyDriverBridge> driver;
20 this->driver = driver;
22 virtual bool read(
const uint16_t & sw) {
return true; }
27 cw = cw.
get() | CW_MASK;
29 driver->universal_set_value<TYPE>(OBJ, SUB, this->
getTarget());
34 cw = cw.
get() & ~CW_MASK;
Definition: mode_forward_helper.hpp:14
virtual bool read(const uint16_t &sw)
Definition: mode_forward_helper.hpp:22
ModeForwardHelper(std::shared_ptr< LelyDriverBridge > driver)
Definition: mode_forward_helper.hpp:18
virtual bool write(Mode::OpModeAccesser &cw)
Definition: mode_forward_helper.hpp:23
Definition: mode_target_helper.hpp:20
bool hasTarget()
Definition: mode_target_helper.hpp:26
TYPE getTarget()
Definition: mode_target_helper.hpp:27
Definition: word_accessor.hpp:10
bool get(uint8_t bit) const
Definition: word_accessor.hpp:27
Definition: configuration_manager.hpp:28