USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.

Dependencies:   FATFileSystem

Fork of F401RE-USBHost by Norimasa Okamoto

Embed: (wiki syntax)

« Back to documentation index

USBHostSocketModem Class Reference

USBHostSocketModem Class Reference

A class to communicate a USB flash disk. More...

#include <USBHostSocketModem.h>

Inherits IUSBEnumerator.

Public Member Functions

 USBHostSocketModem ()
 Constructor.
bool connected ()
 Check if a MSD device is connected.
bool connect ()
 Try to connect to a MSD device.
void testAT ()
 Send AT command test function.

Detailed Description

A class to communicate a USB flash disk.

Definition at line 27 of file USBHostSocketModem.h.


Constructor & Destructor Documentation

Constructor.

Parameters:
rootdirmount name

Definition at line 34 of file USBHostSocketModem.cpp.


Member Function Documentation

bool connect (  )

Try to connect to a MSD device.

Returns:
true if connection was successful

Definition at line 61 of file USBHostSocketModem.cpp.

bool connected (  )

Check if a MSD device is connected.

Returns:
true if a MSD device is connected

Definition at line 56 of file USBHostSocketModem.cpp.

void testAT (  )

Send AT command test function.

Sends the "AT" command which responds with "OK" if sim card is present else "ERROR".

Definition at line 158 of file USBHostSocketModem.cpp.