dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
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
34
struct
pios_usb_cdc_cfg
{
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
pios_usb_cdc_com_driver
const struct pios_com_driver pios_usb_cdc_com_driver
pios_com_driver
Definition:
pios_com.h:43
pios_usb_cdc_cfg::ctrl_if
uint8_t ctrl_if
Definition:
pios_usb_cdc_priv.h:35
pios_usb_cdc_cfg::data_tx_ep
uint8_t data_tx_ep
Definition:
pios_usb_cdc_priv.h:40
cfg
static struct flyingpicmd_cfg_fa cfg
Definition:
main.c:49
pios_usb_cdc_cfg::data_if
uint8_t data_if
Definition:
pios_usb_cdc_priv.h:38
pios_usb_cdc_cfg
Definition:
pios_usb_cdc_priv.h:34
pios_usb_cdc_cfg::ctrl_tx_ep
uint8_t ctrl_tx_ep
Definition:
pios_usb_cdc_priv.h:36
pios_usb_cdc_cfg::data_rx_ep
uint8_t data_rx_ep
Definition:
pios_usb_cdc_priv.h:39
PIOS_USB_CDC_Init
int32_t PIOS_USB_CDC_Init(uintptr_t *usbcdc_id, const struct pios_usb_cdc_cfg *cfg, uintptr_t lower_id)
flight
PiOS
inc
pios_usb_cdc_priv.h
Generated by
1.8.6