XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Embed: (wiki syntax)

« Back to documentation index

ISerial Class Reference

ISerial Class Reference

Serial data interface. More...

#include <ISerial.h>

Public Member Functions

virtual int readByte ()=0
 Read one byte data from the serila port.
virtual void writeByte (char data)=0
 write one byte data to the serila port.
virtual bool isOpen ()=0
 Check if the serial port is already open.
virtual void open ()=0
 Open the serila port.
virtual void close ()=0
 Close the serila port.
virtual bool peek ()=0
 Check if data is avaliable to read.

Detailed Description

Serial data interface.

Definition at line 5 of file ISerial.h.


Member Function Documentation

virtual void close (  ) [pure virtual]

Close the serila port.

virtual bool isOpen (  ) [pure virtual]

Check if the serial port is already open.

virtual void open (  ) [pure virtual]

Open the serila port.

virtual bool peek (  ) [pure virtual]

Check if data is avaliable to read.

virtual int readByte (  ) [pure virtual]

Read one byte data from the serila port.

Returns:
if success return non zero [0x00-0xFF], -1 means something is wrong
virtual void writeByte ( char  data ) [pure virtual]

write one byte data to the serila port.

Parameters:
data[0x00-0xFF]