CDCNotifications.h
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------------- */
2 /* Atmel Microcontroller Software Support */
3 /* SAM Software Package License */
4 /* ---------------------------------------------------------------------------- */
5 /* Copyright (c) 2015, Atmel Corporation */
6 /* */
7 /* All rights reserved. */
8 /* */
9 /* Redistribution and use in source and binary forms, with or without */
10 /* modification, are permitted provided that the following condition is met: */
11 /* */
12 /* - Redistributions of source code must retain the above copyright notice, */
13 /* this list of conditions and the disclaimer below. */
14 /* */
15 /* Atmel's name may not be used to endorse or promote products derived from */
16 /* this software without specific prior written permission. */
17 /* */
18 /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */
19 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
20 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */
21 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */
22 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
23 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
24 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
25 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
26 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
27 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
28 /* ---------------------------------------------------------------------------- */
29 
34 #ifndef _CDCNOTIFICATIONS_H_
35 #define _CDCNOTIFICATIONS_H_
36 
40 /*----------------------------------------------------------------------------
41  * Includes
42  *----------------------------------------------------------------------------*/
43 
44 #include <stdint.h>
45 
46 /*----------------------------------------------------------------------------
47  * Definitions
48  *----------------------------------------------------------------------------*/
49 
64 #define CDCSerialState_RXDRIVER (1 << 0)
65 
66 #define CDCSerialState_TXCARRIER (1 << 1)
67 
68 #define CDCSerialState_BREAK (1 << 2)
69 
70 #define CDCSerialState_RINGSIGNAL (1 << 3)
71 
72 #define CDCSerialState_FRAMING (1 << 4)
73 
74 #define CDCSerialState_PARITY (1 << 5)
75 
76 #define CDCSerialState_OVERRUN (1 << 6)
77 
79 /*----------------------------------------------------------------------------
80  * Types
81  *----------------------------------------------------------------------------*/
82 #pragma pack(1)
83 #if defined ( __CC_ARM ) /* Keil ¦̀Vision 4 */
84 #elif defined ( __ICCARM__ ) /* IAR Ewarm */
85 #define __attribute__(...)
86 #define __packed__ packed
87 #elif defined ( __GNUC__ ) /* GCC CS3 */
88 #define __packed__ aligned(1)
89 #endif
90 
91 typedef struct _CDCSerialState {
92  uint16_t bRxCarrier:1,
94  bTxCarrier:1,
95  bBreak:1,
96  bRingSignal:1,
97  bFraming:1,
98  bParity:1,
99  bOverRun:1,
100  reserved:9;
101 } __attribute__ ((__packed__)) CDCSerialState;
102 
103 #pragma pack()
104 
105 /*----------------------------------------------------------------------------
106  * Functions
107  *----------------------------------------------------------------------------*/
108 
110 #endif /* #ifndef _CDCNOTIFICATIONS_H_ */
111 
typedef __attribute__
USB Device LPM Descriptor structure.
Definition: d_usartDMA.c:1064


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04