#include <3PosAnalog.h>
Definition at line 13 of file 3PosAnalog.h.
 
◆ POS3_DIRECTION
| Enumerator | 
|---|
| UP |  | 
| MIDDLE |  | 
| DOWN |  | 
| INVALID |  | 
Definition at line 16 of file 3PosAnalog.h.
 
 
◆ Pos3Analog()
  
  | 
        
          | Pos3Analog::Pos3Analog | ( | Component * | owner, |  
          |  |  | short | _upPin, |  
          |  |  | short | _downPin, |  
          |  |  | short | _id, |  
          |  |  | short | _addr |  
          |  | ) |  |  |  | inline | 
 
Definition at line 24 of file 3PosAnalog.h.
   28                     : ModbusValue<int>(_addr, MB_FC::MB_FC_READ_REGISTERS),
 
   29                       Component(
"Pos3Analog", _id, Component::COMPONENT_DEFAULT, owner),
 
   35       SBI(nFlags, OBJECT_NET_CAPS::E_NCAPS_MODBUS);
 
   36       setRegisterMode(MB_REGISTER_MODE::E_MB_REGISTER_MODE_READ);
 
 
 
◆ changed()
  
  | 
        
          | bool Pos3Analog::changed | ( |  | ) |  |  | inlineprivate | 
 
 
◆ clear()
  
  | 
        
          | bool Pos3Analog::clear | ( |  | ) |  |  | inlineprivate | 
 
 
◆ debug()
  
  | 
        
          | short Pos3Analog::debug | ( |  | ) |  |  | inline | 
 
 
◆ getRegisterDescription()
  
  | 
        
          | String Pos3Analog::getRegisterDescription | ( | short | reg | ) |  |  | inlineprivate | 
 
Definition at line 122 of file 3PosAnalog.h.
  125       short s = snprintf(buff, 255, 
"- Read Position : Address=%d(%X) -> [Up:%d  Middle:%d Down:%d]", addr, addr, POS3_DIRECTION::UP, POS3_DIRECTION::MIDDLE, POS3_DIRECTION::DOWN);
 
 
 
 
◆ info()
  
  | 
        
          | short Pos3Analog::info | ( | short | val0, |  
          |  |  | short | val1 |  
          |  | ) |  |  |  | inline | 
 
Definition at line 45 of file 3PosAnalog.h.
   47       Log.verboseln(
"3PosAnalog::info - Pin-0=%d | Pin-1=%d | Key=%d | Addr=%d | Val=%d | NetVal=%d ", 
upPin, 
downPin, 
id, addr, 
value, netVal());
 
 
 
 
◆ loop()
  
  | 
        
          | short Pos3Analog::loop | ( |  | ) |  |  | inline | 
 
 
◆ onRegisterMethods()
  
  | 
        
          | short Pos3Analog::onRegisterMethods | ( | Bridge * | bridge | ) |  |  | inline | 
 
Definition at line 77 of file 3PosAnalog.h.
   79       bridge->registerMemberFunction(
id, 
this, C_STR(
"setFlag"), (ComponentFnPtr)&Pos3Analog::setFlag);
 
   81       bridge->registerMemberFunction(
id, 
this, C_STR(
"info"), (ComponentFnPtr)&
Pos3Analog::info);
 
 
 
 
◆ read()
Definition at line 86 of file 3PosAnalog.h.
   93          newDirection = POS3_DIRECTION::DOWN;
 
   97          newDirection = POS3_DIRECTION::UP;
 
  101          newDirection = POS3_DIRECTION::MIDDLE;
 
  105          newDirection = POS3_DIRECTION::INVALID;
 
 
 
 
◆ setup()
  
  | 
        
          | short Pos3Analog::setup | ( |  | ) |  |  | inline | 
 
 
◆ downPin
      
        
          | short Pos3Analog::downPin | 
      
 
 
◆ last_switch
      
        
          | int Pos3Analog::last_switch = -1 | 
      
 
 
◆ upPin
◆ value
      
        
          | int Pos3Analog::value = -1 | 
      
 
 
The documentation for this class was generated from the following file: