Labview
Dependencies: C12832_lcd LCD_fonts LM75B analogintest3 MMA7660 mbed
Fork of analogintest3 by
RPCVariable< T > Class Template Reference
Class to read and set an attached variable using the RPC. More...
#include <RPCVariable.h>
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 RPCVariable< T >
Class to read and set an attached variable using the RPC.
Definition at line 40 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 50 of file RPCVariable.h.
Member Function Documentation
T read | ( | ) |
Read the variable over RPC.
- Returns:
- The value of the variable
Definition at line 58 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 66 of file RPCVariable.h.
Generated on Fri Jul 15 2022 01:49:40 by 1.7.2