Rudiments
Public Member Functions | List of all members
modemutil Class Reference

#include <modemutil.h>

Inherited by modemclient, and modemserver.

Public Member Functions

 modemutil ()
 
virtual ~modemutil ()
 
void setDevice (const char *device)
 
void setBaud (const char *baud)
 
const chargetDevice ()
 
const chargetBaud ()
 

Detailed Description

The modemutil class is just a base class for other classes that use modems. It unlikely to need to be used directly.

Constructor & Destructor Documentation

◆ modemutil()

modemutil::modemutil ( )

Creates an instance of the modemutil class.

◆ ~modemutil()

virtual modemutil::~modemutil ( )
virtual

Deletes this instance of the modemutil class.

Member Function Documentation

◆ getBaud()

const char * modemutil::getBaud ( )

Returns the baud rate set by the most recent call to setBaud().

◆ getDevice()

const char * modemutil::getDevice ( )

Returns the (serial) device name set by the most recent call to setDevice().

◆ setBaud()

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.

◆ setDevice()

void modemutil::setDevice ( const char * device)

Sets the (serial) device to be used by the class Eg. /dev/ttyS0