/* * The MIT License (MIT) * * Copyright (c) 2023 Ha Thach (thach@tinyusb.org) for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. *//* ... */#ifndefTUSB_CP210X_H#defineTUSB_CP210X_H// Protocol details can be found at AN571: CP210x Virtual COM Port Interface// https://www.silabs.com/documents/public/application-notes/AN571.pdf#defineTU_CP210X_VID0x10C4/* Config request codes */#defineCP210X_IFC_ENABLE0x00#defineCP210X_SET_BAUDDIV0x01#defineCP210X_GET_BAUDDIV0x02#defineCP210X_SET_LINE_CTL0x03// Set parity, data bits, stop bits#defineCP210X_GET_LINE_CTL0x04#defineCP210X_SET_BREAK0x05#defineCP210X_IMM_CHAR0x06#defineCP210X_SET_MHS0x07// Set DTR, RTS#defineCP210X_GET_MDMSTS0x08// Get modem status (DTR, RTS, CTS, DSR, RI, DCD)#defineCP210X_SET_XON0x09#defineCP210X_SET_XOFF0x0A#defineCP210X_SET_EVENTMASK0x0B#defineCP210X_GET_EVENTMASK0x0C#defineCP210X_SET_CHAR0x0D#defineCP210X_GET_CHARS0x0E#defineCP210X_GET_PROPS0x0F#defineCP210X_GET_COMM_STATUS0x10#defineCP210X_RESET0x11#defineCP210X_PURGE0x12#defineCP210X_SET_FLOW0x13#defineCP210X_GET_FLOW0x14#defineCP210X_EMBED_EVENTS0x15#defineCP210X_GET_EVENTSTATE0x16#defineCP210X_SET_CHARS0x19#defineCP210X_GET_BAUDRATE0x1D#defineCP210X_SET_BAUDRATE0x1E#defineCP210X_VENDOR_SPECIFIC0xFF// GPIO, Recipient must be Device29 defines/* ... */#endif//TUSB_CP210X_H
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.