|
Open Model Railroad Network (OpenMRN)
|
#include <algorithm>#include "mbed.h"#include "USBSerial.h"#include "Serial.hxx"#include "os/os.h"#include "utils/macros.h"#include "portmacro.h"#include <stdlib.h>Go to the source code of this file.
Classes | |
| class | MbedRawUSBSerial |
| This class is an empty wrapper around MBed's USB CDC class. More... | |
Macros | |
| #define | TX_DATA_SIZE 64 |
| Number of bytes in the send buffer. | |
| #define | RX_DATA_SIZE 64 |
| Number of bytes in the receive buffer. | |
Functions | |
| void * | operator new (size_t size) |
| C++ operator (not sure why this is needed). | |
| void * | operator new[] (size_t size) |
| C++ operator (not sure why this is needed). | |
| void | operator delete (void *ptr) |
| C++ operator (not sure why this is needed). | |
| void | operator delete[] (void *ptr) |
| C++ operator (not sure why this is needed). | |
| int | __cxa_guard_acquire (__guard *) |
| C++ operator (not sure why this is needed). | |
| void | __cxa_guard_release (__guard *) |
| C++ operator (not sure why this is needed). | |
| void | __cxa_guard_abort (__guard *) |
| C++ operator (not sure why this is needed). | |
| void | __cxa_pure_virtual (void) |
| C++ operator (not sure why this is needed). | |
Variables | |
| __extension__ typedef int | __guard |
| not sure why this is needed. | |
| MbedRawUSBSerial | g_mbed_usb_serial ("/dev/serUSB0") |
| Global object for the mbed usb serial. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This file implements an USB-Serial driver on top of the mbed library. Currently it is tested on the LPC23xx and LPC17xx processors.
Definition in file mbed_usbserial.cpp.
| #define RX_DATA_SIZE 64 |
Number of bytes in the receive buffer.
Definition at line 50 of file mbed_usbserial.cpp.
| #define TX_DATA_SIZE 64 |
Number of bytes in the send buffer.
Definition at line 48 of file mbed_usbserial.cpp.
| void __cxa_guard_abort | ( | __guard * | ) |
C++ operator (not sure why this is needed).
Definition at line 279 of file mbed_usbserial.cpp.
| int __cxa_guard_acquire | ( | __guard * | g | ) |
C++ operator (not sure why this is needed).
Definition at line 271 of file mbed_usbserial.cpp.
| void __cxa_guard_release | ( | __guard * | g | ) |
C++ operator (not sure why this is needed).
Definition at line 275 of file mbed_usbserial.cpp.
| void __cxa_pure_virtual | ( | void | ) |
C++ operator (not sure why this is needed).
Definition at line 281 of file mbed_usbserial.cpp.
| void operator delete | ( | void * | ptr | ) |
C++ operator (not sure why this is needed).
Definition at line 265 of file mbed_usbserial.cpp.
| void operator delete[] | ( | void * | ptr | ) |
C++ operator (not sure why this is needed).
Definition at line 270 of file mbed_usbserial.cpp.
| void * operator new | ( | size_t | size | ) |
C++ operator (not sure why this is needed).
Definition at line 258 of file mbed_usbserial.cpp.
| void * operator new[] | ( | size_t | size | ) |
C++ operator (not sure why this is needed).
Definition at line 263 of file mbed_usbserial.cpp.
| __extension__ typedef int __guard |
not sure why this is needed.
Definition at line 64 of file mbed_usbserial.cpp.