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
Provides an Interface to mbed over RPC. More...
#include <SerialRPCInterface.h>
Public Member Functions | |
| SerialRPCInterface (PinName tx, PinName rx, int baud=9600) | |
| Constructor. | |
| void | Disable (void) |
| Disable the RPC. | |
| void | Enable (void) |
| Enable the RPC. | |
Provides an Interface to mbed over RPC.
For the chosen communication type this class sets up the necessary interrupts to receive RPC messages. Receives the messages, passes them to the rpc function and then returns the result.
Definition at line 47 of file SerialRPCInterface.h.
| SerialRPCInterface | ( | PinName | tx, | |
| PinName | rx, | |||
| int | baud = 9600 | |||
| ) |
Constructor.
Sets up RPC communication using serial communication.
| tx | The transmit pin of the serial port. | |
| rx | The receive pin of the serial port. | |
| baud | Set the baud rate, default is 9600. |
Definition at line 33 of file SerialRPCInterface.cpp.
| void Disable | ( | void | ) |
Disable the RPC.
This will stop RPC messages being recevied and interpreted by this library. This might be used to prevent RPC commands interrupting an important piece of code on mbed.
Definition at line 59 of file SerialRPCInterface.cpp.
| void Enable | ( | void | ) |
Enable the RPC.
This will set this class to receiving and executing RPC commands. The class starts in this mode so this function only needs to be called if you have previosuly disabled the RPC.
Definition at line 62 of file SerialRPCInterface.cpp.