Rudiments
|
Inherited by modemclient, and modemserver.
Public Member Functions | |
modemutil () | |
virtual | ~modemutil () |
void | setDevice (const char *device) |
void | setBaud (const char *baud) |
const char * | getDevice () |
const char * | getBaud () |
The modemutil class is just a base class for other classes that use modems. It unlikely to need to be used directly.
modemutil::modemutil | ( | ) |
Creates an instance of the modemutil class.
|
virtual |
Deletes this instance of the modemutil class.
const char* modemutil::getBaud | ( | ) |
Returns the baud rate set by the most recent call to setBaud().
const char* modemutil::getDevice | ( | ) |
Returns the (serial) device name set by the most recent call to setDevice().
void modemutil::setBaud | ( | const char * | baud | ) |
Sets the baud rate to be used when talking to the serial port. Eg. 115200 Note that this is not the baud rate used by the modem itself. That must usually be set using AT commands or similar.
void modemutil::setDevice | ( | const char * | device | ) |
Sets the (serial) device to be used by the class Eg. /dev/ttyS0