CDCDSerial.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 
36 #ifndef CDCDSERIAL_H
37 #define CDCDSERIAL_H
38 
43 /*------------------------------------------------------------------------------
44  * Headers
45  *------------------------------------------------------------------------------*/
46 
47 /* These headers were introduced in C99
48  by working group ISO/IEC JTC1/SC22/WG14. */
49 #include <stdint.h>
50 
51 #include <USBRequests.h>
52 
53 #include <USBDDriver.h>
54 #include <CDCDSerialPort.h>
55 
56 /*------------------------------------------------------------------------------
57  * Definitions
58  *------------------------------------------------------------------------------*/
59 
60 /*------------------------------------------------------------------------------
61  * Types
62  *------------------------------------------------------------------------------*/
63 
64 /*------------------------------------------------------------------------------
65  * Exported functions
66  *------------------------------------------------------------------------------*/
67 
68 extern void CDCDSerial_Initialize(
69  USBDDriver * pUsbd, uint8_t bInterfaceNb);
70 
71 extern uint32_t CDCDSerial_RequestHandler(
72  const USBGenericRequest *request);
73 
75  USBGenericDescriptor * pDescriptors, uint16_t wLength);
76 
77 extern uint32_t CDCDSerial_Write(
78  void *data,
79  uint32_t size,
80  TransferCallback callback,
81  void *argument);
82 
83 extern uint32_t CDCDSerial_Read(
84  void *data,
85  uint32_t size,
86  TransferCallback callback,
87  void *argument);
88 
89 extern void CDCDSerial_GetLineCoding(CDCLineCoding * pLineCoding);
90 
91 extern uint8_t CDCDSerial_GetControlLineState(void);
92 
93 extern uint16_t CDCDSerial_GetSerialState(void);
94 
95 extern void CDCDSerial_SetSerialState(uint16_t serialState);
96 
97 extern uint8_t CDCDSerial_LineCodingIsToChange(
98  CDCLineCoding * pLineCoding);
99 
101  uint8_t DTR,uint8_t RTS);
102 
105 #endif /*#ifndef CDCSERIAL_H*/
106 
void CDCDSerial_GetLineCoding(CDCLineCoding *pLineCoding)
Definition: CDCDSerial.c:208
void CDCDSerial_Initialize(USBDDriver *pUsbd, uint8_t bInterfaceNb)
Definition: CDCDSerial.c:108
uint32_t CDCDSerial_RequestHandler(const USBGenericRequest *request)
Definition: CDCDSerial.c:144
uint16_t CDCDSerial_GetSerialState(void)
Definition: CDCDSerial.c:218
uint32_t CDCDSerial_Write(void *data, uint32_t size, TransferCallback callback, void *argument)
Definition: CDCDSerial.c:184
Definition: m2m_wifi.h:117
uint8_t CDCDSerial_LineCodingIsToChange(CDCLineCoding *pLineCoding)
void CDCDSerial_ControlLineStateChanged(uint8_t DTR, uint8_t RTS)
void(* TransferCallback)(void *pArg, uint8_t status, uint32_t transferred, uint32_t remaining)
Definition: USBD.h:200
USBInterfaceDescriptor data
void CDCDSerial_ConfigureFunction(USBGenericDescriptor *pDescriptors, uint16_t wLength)
Definition: CDCDSerial.c:129
uint32_t CDCDSerial_Read(void *data, uint32_t size, TransferCallback callback, void *argument)
Definition: CDCDSerial.c:163
uint8_t CDCDSerial_GetControlLineState(void)
Definition: CDCDSerial.c:197
void CDCDSerial_SetSerialState(uint16_t serialState)
Definition: CDCDSerial.c:229


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57