export commit
RPCVariable< T > Class Template Reference
Class to read and set an attached variable using the RPC. More...
#include <RPCVariable.h>
Inherits mbed::RPC.
Public Member Functions | |
template<class A > | |
RPCVariable (A *ptr, const char *name) | |
Constructor. | |
T | read () |
Read the variable over RPC. | |
void | write (T value) |
Write a value to the variable over RPC. |
Detailed Description
template<class T>
class mbed::RPCVariable< T >
Class to read and set an attached variable using the RPC.
Definition at line 28 of file RPCVariable.h.
Constructor & Destructor Documentation
RPCVariable | ( | A * | ptr, |
const char * | name | ||
) |
Constructor.
- Parameters:
-
ptr Pointer to the variable to make accessible over RPC. Any type of variable can be connected name The name of that this object will be over RPC
Definition at line 38 of file RPCVariable.h.
Member Function Documentation
T read | ( | ) |
Read the variable over RPC.
- Returns:
- The value of the variable
Definition at line 46 of file RPCVariable.h.
void write | ( | T | value ) |
Write a value to the variable over RPC.
- Parameters:
-
The value to be written to the attached variable.
Definition at line 54 of file RPCVariable.h.
Generated on Sun Jul 24 2022 23:52:18 by 1.7.2