dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_usb_cdc_priv.h
Go to the documentation of this file.
1 
16 /*
17  * This program is free software; you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation; either version 3 of the License, or
20  * (at your option) any later version.
21  *
22  * This program is distributed in the hope that it will be useful, but
23  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
24  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
25  * for more details.
26  *
27  * You should have received a copy of the GNU General Public License along
28  * with this program; if not, see <http://www.gnu.org/licenses/>
29  */
30 
31 #ifndef PIOS_USB_CDC_PRIV_H
32 #define PIOS_USB_CDC_PRIV_H
33 
35  uint8_t ctrl_if;
36  uint8_t ctrl_tx_ep;
37 
38  uint8_t data_if;
39  uint8_t data_rx_ep;
40  uint8_t data_tx_ep;
41 };
42 
43 extern const struct pios_com_driver pios_usb_cdc_com_driver;
44 
45 extern int32_t PIOS_USB_CDC_Init(uintptr_t * usbcdc_id, const struct pios_usb_cdc_cfg * cfg, uintptr_t lower_id);
46 
47 /* From USB CDC Spec Section 6.2.14 SetControlLineState */
48 #define USB_CDC_CONTROL_LINE_STATE_DTE_PRESENT 0x01
49 
50 #endif /* PIOS_USB_CDC_PRIV_H */
51 
const struct pios_com_driver pios_usb_cdc_com_driver
static struct flyingpicmd_cfg_fa cfg
Definition: main.c:49
int32_t PIOS_USB_CDC_Init(uintptr_t *usbcdc_id, const struct pios_usb_cdc_cfg *cfg, uintptr_t lower_id)