#include <MotorLoad.h>
Definition at line 15 of file MotorLoad.h.
◆ MSTATE
| Enumerator |
|---|
| NONE | |
| IDLE | |
| LOAD | |
| OVERLOAD | |
| ERROR | |
Definition at line 18 of file MotorLoad.h.
◆ MotorLoad()
| MotorLoad::MotorLoad |
( |
Component * |
_owner, |
|
|
short |
_pin, |
|
|
short |
_id, |
|
|
int |
_addr |
|
) |
| |
|
inline |
Definition at line 27 of file MotorLoad.h.
38 ModbusValue<int>(_addr, MB_FC::MB_FC_READ_REGISTERS),
39 Component(
"MotorLoad", _id, Component::COMPONENT_DEFAULT, _owner)
42 SBI(nFlags, OBJECT_NET_CAPS::E_NCAPS_MODBUS);
43 setRegisterMode(MB_REGISTER_MODE::E_MB_REGISTER_MODE_READ);
◆ debug()
| short MotorLoad::debug |
( |
| ) |
|
|
inline |
◆ idle()
| short MotorLoad::idle |
( |
| ) |
|
|
inline |
◆ info()
| short MotorLoad::info |
( |
| ) |
|
|
inline |
◆ loop()
| short MotorLoad::loop |
( |
| ) |
|
|
inline |
Definition at line 66 of file MotorLoad.h.
72 uchar newState =
NONE;
80 Log.errorln(
"MotorLoad::loop - Overload detected : %d",
value);
◆ overload()
| short MotorLoad::overload |
( |
| ) |
|
|
inline |
◆ setup()
| short MotorLoad::setup |
( |
| ) |
|
|
inline |
◆ working()
| short MotorLoad::working |
( |
| ) |
|
|
inline |
◆ currentState
| short MotorLoad::currentState |
◆ dt
◆ lastIdle
| millis_t MotorLoad::lastIdle |
◆ lastLoad
| millis_t MotorLoad::lastLoad |
◆ lastOverload
| millis_t MotorLoad::lastOverload |
◆ lastState
| short MotorLoad::lastState |
◆ pin
◆ value
The documentation for this class was generated from the following file: