|
Open Model Railroad Network (OpenMRN)
|
#include <fcntl.h>#include "freertos_drivers/common/Serial.hxx"#include "system_config.h"#include "utils/Atomic.hxx"#include "freertos_drivers/pic32mx/int_pic32mx795/int_defines.h"#include "driver/usb/usbfs/drv_usbfs.h"#include "usb/usb_device.h"#include "usb/usb_device_cdc.h"#include "os/os.h"Go to the source code of this file.
Classes | |
| class | Pic32mxCdc |
| Device driver for PIC32MX USB virtual serial port. More... | |
Functions | |
| void * | usb_device_task (void *) |
| void | usb_interrupt () |
| static void | usb_device_event_handler (USB_DEVICE_EVENT event, void *pData, uintptr_t context) |
| static USB_DEVICE_CDC_EVENT_RESPONSE | cdc_device_event_handler (USB_DEVICE_CDC_INDEX index, USB_DEVICE_CDC_EVENT event, void *pData, uintptr_t userData) |
Variables | |
| const DRV_USBFS_INIT | drvUSBFSInit |
| Initialization structure in flash. | |
| const USB_DEVICE_INIT | usbDevInitData |
| Initialization structure in flash. | |
| Pic32mxCdc | usbCdc0 ("/dev/serUSB0") |
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 a USB CDC device driver layer using PIC32 Harmony USB middleware driver.
Definition in file Pic32mxUsbCdcDevice.cxx.
|
static |
Definition at line 587 of file Pic32mxUsbCdcDevice.cxx.
|
static |
Definition at line 553 of file Pic32mxUsbCdcDevice.cxx.
| void * usb_device_task | ( | void * | ) |
Definition at line 250 of file Pic32mxUsbCdcDevice.cxx.
| void usb_interrupt | ( | ) |
Definition at line 261 of file Pic32mxUsbCdcDevice.cxx.
|
extern |
Initialization structure in flash.
Definition at line 42 of file usb_cdc_device_descriptors.c.
|
extern |
Initialization structure in flash.
Definition at line 308 of file usb_cdc_device_descriptors.c.