#include <RegisterManagerProxy.h>
◆ RegisterManagerProxy() [1/2]
Copy constructor is deleted to prevent unexpected behavior.
◆ RegisterManagerProxy() [2/2]
| uniot::RegisterManagerProxy::RegisterManagerProxy |
( |
const String & | name, |
|
|
RegisterManager * | reg ) |
|
inline |
Creates a new proxy for accessing a specific named register.
- Parameters
-
| name | The register name to bind this proxy to |
| reg | Pointer to the RegisterManager instance |
◆ getGpio()
| bool uniot::RegisterManagerProxy::getGpio |
( |
size_t | index, |
|
|
uint8_t & | outValue ) const |
|
inline |
Gets a GPIO value from the specified index in the bound register.
- Parameters
-
| index | The index within the register to read from |
| outValue | Reference to store the read GPIO value |
- Return values
-
| true | If the value was successfully read |
| false | If the value could not be read or index is invalid |
◆ getObject()
template<typename T>
| T * uniot::RegisterManagerProxy::getObject |
( |
size_t | index | ) |
|
|
inline |
Gets an object of the specified type from the bound register.
- Template Parameters
-
| T | The type of object to retrieve |
- Parameters
-
| index | The index within the register to get the object from |
- Return values
-
| T* | Pointer to the requested object or nullptr if not found |
◆ operator=()
Assignment operator is deleted to prevent unexpected behavior.
The documentation for this class was generated from the following file: