USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.
Dependencies: FATFileSystem mbed-rtos
Dependents: BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more
WANDongleSerialPort Class Reference
A class to use a WAN (3G/LTE) access dongle. More...
#include <WANDongleSerialPort.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 38 of file WANDongleSerialPort.h.
Member Function Documentation
void attach | ( | IUSBHostSerialListener * | pListener ) | [virtual] |
Attach a handler to call when a packet is received / when a packet has been transmitted.
- Parameters:
-
pListener instance of the listener deriving from the IUSBHostSerialListener
Implements IUSBHostSerial.
Definition at line 209 of file WANDongleSerialPort.cpp.
int readable | ( | ) | [virtual] |
Check the number of bytes available.
- Returns:
- the number of bytes available
Implements IUSBHostSerial.
Definition at line 171 of file WANDongleSerialPort.cpp.
void setupIrq | ( | bool | en, |
IrqType | irq = RxIrq |
||
) | [virtual] |
Enable or disable readable/writeable callbacks.
Implements IUSBHostSerial.
Definition at line 224 of file WANDongleSerialPort.cpp.
int writeable | ( | ) | [virtual] |
Check the free space in output.
- Returns:
- the number of bytes available
Implements IUSBHostSerial.
Definition at line 190 of file WANDongleSerialPort.cpp.
Generated on Tue Jul 12 2022 13:32:26 by 1.7.2