First published 16 Sep 2010, with 10 revisions since.
Last update: 28 Jan 2012.
View history
Last change message: Updated to not register AnalogOut class if the LPC11U24 as it doesn\'t have AnalogOut
HP41 calculators,
network,
SD Card,
SPI Slave,
USB
Meindert Kuipers
hidemitsu kobayashi
Segundo Equipo
electricity meter,
garage door,
rpc
Jasper Sikken
Nathan Whitaker
AIR,
Board,
conditioner,
infrared,
IR,
light 38KHz,
TANK,
White,
Wi-Fi,
Wizard
yoshinari kou
web server,
X10
Lotfi Baghli
thermostat
Jim Thomas
camera,
geeksessionlab,
get,
http,
motor,
pan,
position,
rest,
rpc,
Servo,
tilt,
webinterface
Nelson Neves
functions,
geeksessionlab,
get,
http,
rest,
rpc,
webserver
Nelson Neves
geeksessionlab,
get,
http,
rest,
rpc,
vars,
webserver
Nelson Neves
geeksessionlab,
hardware,
http,
led,
rest,
rpc,
webinterface
Nelson Neves
Michael Walker
rpc
Michael Walker
a4983,
driver,
motor,
pololu,
Step,
webinterface
Nelson Neves
Proto Drive
application,
Board,
breakout,
Celeritous,
demo
Allen Litton
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. | |
Class to read and set an attached variable using the RPC.
Copyright (c) 2010 ARM Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This class provides an object to which a variable can be attached. Any type for which a parse_args function specilisation exists can be attached. This includes all of the standard types.
Definition at line 40 of file RPCVariable.h.
| RPCVariable | ( | A * | ptr, | |
| const char * | name | |||
| ) |
Constructor.
| 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.
| T read | ( | ) |
Read the variable over RPC.
Definition at line 58 of file RPCVariable.h.
| void write | ( | T | value | ) |
Write a value to the variable over RPC.
| The | value to be written to the attached variable. |
Definition at line 66 of file RPCVariable.h.