|
| | App () |
| | Default constructor for the App class.
|
| |
| Component * | byId (short id) |
| | Retrieves a component by its ID.
|
| |
| virtual short | debug () |
| | Performs debugging operations for the application.
|
| |
| virtual short | info () |
| | Retrieves information about the application.
|
| |
| virtual short | loop () |
| | Runs the main loop of the application.
|
| |
| virtual short | numByFlag (ushort flag) |
| | Retrieves the number of components with a specific flag.
|
| |
| virtual void | printRegisters () |
| |
| virtual short | registerComponents (Bridge *bridge) |
| | Register all components in Bridge
|
| |
| virtual short | setup () |
| | Performs the setup operations for the application and it's components.
|
| |
| 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 (short val0, short val1) |
| | 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 | onRegisterMethods (Bridge *bridge) |
| |
| virtual short | onResponse (short error) |
| |
| void | setFlag (byte flag) |
| | Sets a specific flag for the component.
|
| |
| | ~Component () |
| | Destructor for the Component class.
|
| |
| 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) |
| |
The App class represents the main application component.
This class inherits from the Component class and provides functionality for setting up, running the main loop, debugging, and providing information about the application.
Definition at line 17 of file App.h.