Nicholas Herriot / VodafoneK3770Lib
Embed: (wiki syntax)

« Back to documentation index

WANDongle Class Reference

WANDongle Class Reference

A class to use a WAN (3G/LTE) access dongle. More...

#include <WANDongle.h>

Inherits IUSBHostSerial.

Public Member Functions

virtual int readable ()
 Check the number of bytes available.
virtual int writeable ()
 Check the free space in output.
virtual void attach (IUSBHostSerialListener *pListener)
 Attach a handler to call when a packet is received / when a packet has been transmitted.
virtual void setupIrq (bool en, IrqType irq=RxIrq)
 Enable or disable readable/writeable callbacks.

Detailed Description

A class to use a WAN (3G/LTE) access dongle.

Definition at line 34 of file WANDongle.h.


Member Function Documentation

virtual void attach ( IUSBHostSerialListener *  pListener ) [virtual]

Attach a handler to call when a packet is received / when a packet has been transmitted.

Parameters:
pListenerinstance of the listener deriving from the IUSBHostSerialListener

Implements IUSBHostSerial.

virtual int readable (  ) [virtual]

Check the number of bytes available.

Returns:
the number of bytes available

Implements IUSBHostSerial.

virtual void setupIrq ( bool  en,
IrqType  irq = RxIrq 
) [virtual]

Enable or disable readable/writeable callbacks.

Implements IUSBHostSerial.

virtual int writeable (  ) [virtual]

Check the free space in output.

Returns:
the number of bytes available

Implements IUSBHostSerial.