|
Lydia - Printhead
|
#include <Relay.h>
Public Member Functions | |
| short | debug () |
| Virtual function to debug the component. | |
| short | info (short val0, short val1) |
| Virtual function to display information about the component. | |
| short | loop () |
| Virtual function to run the component in a loop. | |
| short | onRegisterMethods (Bridge *bridge) |
| Relay (Component *owner, short _pin, short _id, short _addr, short _val=0) | |
| short | set (int val) |
| short | setup () |
| Virtual function to set up the component. | |
Public Member Functions inherited from Component | |
| void | clearFlag (byte flag) |
| Clears a specific flag for the component. | |
| Component () | |
| Default constructor for the Component class. | |
| Component (String _name) | |
| Constructor for the Component class with a specified name. | |
| Component (String _name, short _id) | |
| Constructor for the Component class with a specified name and ID. | |
| Component (String _name, short _id, int _flags) | |
| Constructor for the Component class with a specified name, ID, and flags. | |
| Component (String _name, short _id, int _flags, Component *_owner) | |
| Constructor for the Component class with a specified name, ID, flags, and owner. | |
| virtual short | debug (short val0, short val1) |
| Virtual function to debug the component. | |
| virtual short | destroy () |
| Virtual function to destroy the component. | |
| void | disable () |
| Disables the component. | |
| void | enable () |
| Enables the component. | |
| bool | enabled () |
| Checks if the component is enabled. | |
| bool | hasFlag (byte flag) |
| Checks if the component has a specific flag. | |
| virtual short | info () |
| Virtual function to display information about the component. | |
| virtual short | onError (short id, short error) |
| virtual short | onMessage (int id, E_CALLS verb, E_MessageFlags flags, const void *user, Component *src) |
| Handles incoming messages. | |
| virtual short | onRawResponse (short size, uint8_t rxBuffer[]) |
| virtual short | onResponse (short error) |
| void | setFlag (byte flag) |
| Sets a specific flag for the component. | |
| ~Component () | |
| Destructor for the Component class. | |
Public Member Functions inherited from ModbusGateway | |
| short | getAddress () |
| MB_FC | getFunctionCode () |
| short | getNumberAddresses () |
| virtual String | getRegisterDescription (short flags=0) |
| const char * | getRegisterMode () |
| ModbusGateway () | |
| ModbusGateway (short _addr) | |
| ModbusGateway (short _addr, short _fc) | |
| void | setAddress (short _addr) |
| void | setFunctionCode (MB_FC fc) |
| void | setGateway (Mudbus *mudbus) |
| void | setNumberAddresses (short _nbAddr) |
| void | setRegisterMode (MB_REGISTER_MODE mode) |
Public Member Functions inherited from ModbusValue< bool > | |
| ModbusValue (int _addr) | |
| ModbusValue (int _addr, int _fc) | |
| bool | netVal () |
| void | onChange (const bool &value) |
| void | onSet (const bool &value) |
Public Attributes | |
| short | pin |
| bool | value |
Public Attributes inherited from Component | |
| int | flags |
| The run flags for the component. | |
| const short | id |
| The ID of the component. | |
| millis_t | last |
| The last tick time in milliseconds. | |
| String | name |
| The name of the component. | |
| int | nFlags |
| The network capabilities of the component. | |
| millis_t | now |
| The current time in milliseconds. | |
| Component * | owner |
| The owner of the component. | |
Public Attributes inherited from ModbusGateway | |
| short | addr |
| MB_FC | fn |
| uchar | lastMQSlot |
| Mudbus * | mudbus |
| short | nbAddr |
| short | registerMode |
Additional Inherited Members | |
Static Public Attributes inherited from Component | |
| static const int | COMPONENT_DEFAULT = 1 << OBJECT_RUN_FLAGS::E_OF_LOOP | 1 << OBJECT_RUN_FLAGS::E_OF_SETUP |
| The default run flags for a component. | |
| static const int | COMPONENT_NO_ID = 0 |
| The default ID for a component. | |
Definition at line 21 of file Relay.h.
|
inlinevirtual |
Virtual function to debug the component.
| stream | The stream to output the debug information to. |
Reimplemented from Component.
Definition at line 42 of file Relay.h.
Virtual function to display information about the component.
| stream | The stream to output the information to. |
Reimplemented from Component.
|
inlinevirtual |
Registers methods for the component with the specified bridge. This method should be overridden by derived classes to provide custom method registration logic.
| bridge | The bridge to register methods with. |
Reimplemented from Component.
Definition at line 87 of file Relay.h.
|
inlinevirtual |
Virtual function to set up the component.
Reimplemented from Component.
Definition at line 47 of file Relay.h.