| /****************************************************************************** |
| * @file CDCClassDevice.h |
| * |
| * @brief for TLSR chips |
| * |
| * @author public@telink-semi.com; |
| * @date Sep. 30, 2010 |
| * |
| * @attention |
| * |
| * Copyright (C) 2019-2020 Telink Semiconductor (Shanghai) Co., Ltd. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| * |
| *****************************************************************************/ |
| #pragma once |
| |
| /* Includes: */ |
| #include <application/usbstd/CDCClassCommon.h> |
| #include "../common/types.h" |
| |
| /* Enable C linkage for C++ Compilers: */ |
| #if defined(__cplusplus) |
| extern "C" { |
| #endif |
| |
| typedef struct |
| { |
| struct |
| { |
| u8 ControlInterfaceNumber; |
| u8 DataINEndpointNumber; |
| u16 DataINEndpointSize; |
| bool DataINEndpointDoubleBank; |
| u8 DataOUTEndpointNumber; |
| u16 DataOUTEndpointSize; |
| bool DataOUTEndpointDoubleBank; |
| u8 NotificationEndpointNumber; |
| u16 NotificationEndpointSize; |
| bool NotificationEndpointDoubleBank; |
| } Config; |
| |
| struct |
| { |
| struct |
| { |
| u16 HostToDevice; |
| u16 DeviceToHost; |
| } ControlLineStates; |
| |
| CDC_LineEncoding_t LineEncoding; |
| } State; |
| } USB_ClassInfo_CDC_Device_t; |
| |
| |
| /* Disable C linkage for C++ Compilers: */ |
| #if defined(__cplusplus) |
| } |
| #endif |