亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usbconfigurationdescriptor.h

?? IAR5.2下 AT91SAM9260 ARM 對 MCP2515 控制源化碼
?? H
字號:
/* ----------------------------------------------------------------------------
 *         ATMEL Microcontroller Software Support 
 * ----------------------------------------------------------------------------
 * Copyright (c) 2008, Atmel Corporation
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * - Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the disclaimer below.
 *
 * Atmel's name may not be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * ----------------------------------------------------------------------------
 */

/**
 *  \dir
 *  !!!Purpose
 * 
 *      Definitions of descriptor and request structures
 *      described by the USB specification.
 * 
 *  !!!Usage
 * 
 *      -# Do this
 *      -# Do that
 */

#ifndef USBCONFIGURATIONDESCRIPTOR_H
#define USBCONFIGURATIONDESCRIPTOR_H

//------------------------------------------------------------------------------
//         Headers
//------------------------------------------------------------------------------

#include "USBGenericDescriptor.h"
#include "USBInterfaceDescriptor.h"
#include "USBEndpointDescriptor.h"

//------------------------------------------------------------------------------
//         Definitions
//------------------------------------------------------------------------------
/*
    Constants: Attributes
        USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP - Device is bus-powered
            and not support remote wake-up.
        USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP - Device is self-powered
            and not support remote wake-up.
        USBConfigurationDescriptor_BUSPOWERED_RWAKEUP - Device is bus-powered
            and supports remote wake-up.
        USBConfigurationDescriptor_SELFPOWERED_RWAKEUP - Device is self-powered
            and supports remote wake-up.
*/
#define USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP  0x80
#define USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP 0xC0
#define USBConfigurationDescriptor_BUSPOWERED_RWAKEUP    0xA0
#define USBConfigurationDescriptor_SELFPOWERED_RWAKEUP   0xE0

/*
    Macros:
        USBConfigurationDescriptor_POWER - Calculates the value of the power
                                           consumption field given the value in
                                           mA.
*/
#define USBConfigurationDescriptor_POWER(power)     (power / 2)

//------------------------------------------------------------------------------
//         Types
//------------------------------------------------------------------------------

#ifdef __ICCARM__          // IAR
#pragma pack(1)            // IAR
#define __attribute__(...) // IAR
#endif                     // IAR

/*
    Type: USBConfigurationDescriptor
        USB standard configuration descriptor structure.

    Variables:
        bLength - Size of the descriptor in bytes.
        bDescriptorType - Descriptor type (<USBDESC_CONFIGURATION>).
        wTotalLength - Length of all descriptors returned along with this
                       configuration descriptor.
        bNumInterfaces - Number of interfaces in this configuration.
        bConfigurationValue - Value for selecting this configuration.
        iConfiguration - Index of the configuration string descriptor.
        bmAttributes - Configuration characteristics.
        bMaxPower - Maximum power consumption of the device when in this
                    configuration.
*/
typedef struct {

   unsigned char bLength;             
   unsigned char bDescriptorType;     
   unsigned short wTotalLength;            
   unsigned char bNumInterfaces;      
   unsigned char bConfigurationValue; 
   unsigned char iConfiguration;       
   unsigned char bmAttributes;         
   unsigned char bMaxPower;           
                                       
} __attribute__ ((packed)) USBConfigurationDescriptor; // GCC

#ifdef __ICCARM__          // IAR
#pragma pack()             // IAR
#endif                     // IAR

//------------------------------------------------------------------------------
//         Exported functions
//------------------------------------------------------------------------------
/*
    Function: USBConfigurationDescriptor_GetTotalLength
        Returns the total length of a configuration, i.e. including the 
        descriptors following it.

    Parameters:
        configuration - Pointer to a USBConfigurationDescriptor instance.

    Returns:
        Total length (in bytes) of the configuration.
*/
extern unsigned int USBConfigurationDescriptor_GetTotalLength(
    const USBConfigurationDescriptor *configuration);

/*
    Function: USBConfigurationDescriptor_GetNumInterfaces
        Returns the number of interfaces in a configuration.

    Parameters:
        configuration - Pointer to a USBConfigurationDescriptor instance.

    Returns:
        Number of interfaces in configuration.
*/
extern unsigned char USBConfigurationDescriptor_GetNumInterfaces(
    const USBConfigurationDescriptor *configuration);

/*
    Function: USBConfigurationDescriptor_IsSelfPowered
        Indicates if the device is self-powered when in a given configuration.

    Parameters:
        configuration - Pointer to a USBConfigurationDescriptor instance.

    Returns:
        1 if the device is self-powered when in the given configuration;
        otherwise 0.
*/
extern unsigned char USBConfigurationDescriptor_IsSelfPowered(
    const USBConfigurationDescriptor *configuration);

/*
    Function: USBConfigurationDescriptor_Parse
        Parses the given Configuration descriptor (followed by relevant
        interface, endpoint and class-specific descriptors) into three arrays.

        *Each array must have its size equal or greater to the number of
        descriptors it stores plus one*. A null-value is inserted after the last
        descriptor of each type to indicate the array end.

        Note that if the pointer to an array is null (0), nothing is stored in
        it.

    Parameters:
        configuration - Pointer to the start of the whole Configuration descriptor.
        interfaces - Pointer to the Interface descriptor array.
        endpoints - Pointer to the Endpoint descriptor array.
        others - Pointer to the class-specific descriptor array.
*/
extern void USBConfigurationDescriptor_Parse(
    const USBConfigurationDescriptor *configuration,
    USBInterfaceDescriptor **interfaces,
    USBEndpointDescriptor **endpoints,
    USBGenericDescriptor **others);

#endif //#ifndef USBCONFIGURATIONDESCRIPTOR_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产传媒久久文化传媒| 国产成人在线视频网站| 国产精品一级黄| 日本精品视频一区二区| 欧美丰满美乳xxx高潮www| 国产亚洲视频系列| 一区二区三区四区五区视频在线观看| 日韩精品一二三四| 国产一区二区91| 在线看不卡av| 国产精品无遮挡| 久热成人在线视频| 日韩一区二区电影在线| 亚洲九九爱视频| 成人av电影在线播放| 精品国产乱码久久久久久浪潮| 伊人婷婷欧美激情| av一本久道久久综合久久鬼色| 色八戒一区二区三区| 国产人成亚洲第一网站在线播放| 日韩黄色在线观看| 色国产精品一区在线观看| 国产女人水真多18毛片18精品视频| 蜜臀av在线播放一区二区三区| 色猫猫国产区一区二在线视频| 中文字幕不卡三区| 国产高清不卡二三区| 久久色中文字幕| 开心九九激情九九欧美日韩精美视频电影 | 一区二区三区中文免费| 成人污视频在线观看| 久久久国产精华| 丁香激情综合五月| 欧美国产激情二区三区 | 精品福利av导航| 日韩av电影天堂| 欧美高清性hdvideosex| 亚洲成人激情综合网| 欧美色中文字幕| 丝袜美腿成人在线| 欧美一区二视频| 久久电影网站中文字幕| www亚洲一区| 国产精品18久久久久久久久久久久 | 韩国女主播成人在线观看| 日韩美女一区二区三区| 久99久精品视频免费观看| 92精品国产成人观看免费| 国产精品午夜春色av| 91天堂素人约啪| 亚洲电影欧美电影有声小说| 777a∨成人精品桃花网| 亚洲国产精品久久不卡毛片 | 色婷婷综合久久久久中文一区二区| 一区二区三区蜜桃| 久久久国产一区二区三区四区小说| 欧美视频在线一区| av成人老司机| 高清国产一区二区| 九九精品视频在线看| 日日夜夜一区二区| 尤物视频一区二区| 国产精品久久久久9999吃药| 2020国产精品自拍| 欧美r级电影在线观看| 777欧美精品| 91麻豆精品国产综合久久久久久 | 五月天丁香久久| 艳妇臀荡乳欲伦亚洲一区| 亚洲色图制服诱惑 | 7777精品伊人久久久大香线蕉的| 亚洲欧美色图小说| 精品一区二区三区免费毛片爱| 一区二区视频在线| 中文字幕在线观看一区| 亚洲国产激情av| 国产欧美一区二区三区网站| 精品女同一区二区| 日韩欧美国产一区二区在线播放 | aaa欧美色吧激情视频| 国产老妇另类xxxxx| 久久69国产一区二区蜜臀| 免费在线观看成人| 麻豆中文一区二区| 久久国产精品99久久人人澡| 久久精品国产一区二区三区免费看| 日韩电影在线观看一区| 日本vs亚洲vs韩国一区三区| 久久99国产精品免费网站| 国产一区二区三区免费在线观看| 国产在线观看一区二区| 成人一区二区三区在线观看| 不卡欧美aaaaa| 91激情在线视频| 91精品国产综合久久久久久久久久 | 国产成+人+日韩+欧美+亚洲| 国产福利一区二区| 91论坛在线播放| 4438亚洲最大| 精品国内片67194| 欧美精品一区二区三区蜜桃视频| 久久九九99视频| 亚洲欧美激情小说另类| 亚洲一区二区成人在线观看| 性做久久久久久免费观看| 美女在线观看视频一区二区| 国产一区 二区| 97久久人人超碰| 丁香五精品蜜臀久久久久99网站| 91免费观看视频在线| 欧美人成免费网站| 久久婷婷久久一区二区三区| 中文字幕中文字幕中文字幕亚洲无线| 亚洲激情在线播放| 久久国内精品视频| 99免费精品在线| 狠狠狠色丁香婷婷综合激情| www.亚洲在线| 日韩一区二区高清| 亚洲欧美日韩综合aⅴ视频| 蜜臀av一区二区在线免费观看| 成人影视亚洲图片在线| 欧美日韩mp4| 亚洲欧洲av在线| 久久精品国产99久久6| 色偷偷成人一区二区三区91| 久久久久国产精品厨房| 天天射综合影视| 成人app在线观看| 欧美成人a∨高清免费观看| 亚洲午夜精品网| 不卡的看片网站| 精品国产精品网麻豆系列| 亚洲午夜精品一区二区三区他趣| 国产一区二区三区综合| 欧美精品高清视频| 亚洲精品第一国产综合野| 国产盗摄精品一区二区三区在线 | 精品中文字幕一区二区小辣椒| 色综合久久88色综合天天免费| 日韩欧美www| 亚洲成人福利片| 97国产精品videossex| 精品精品国产高清a毛片牛牛| 午夜视频在线观看一区| 色噜噜偷拍精品综合在线| 久久亚洲免费视频| 精品伊人久久久久7777人| 欧美亚洲日本一区| 国产精品福利影院| 成人午夜电影小说| 欧美一区二区在线视频| 亚洲综合一区二区三区| 激情偷乱视频一区二区三区| 欧美日韩第一区日日骚| 亚洲综合精品自拍| 91蝌蚪porny成人天涯| 中文字幕一区二区三区四区| 国产精品中文有码| 2017欧美狠狠色| 国产一区二区导航在线播放| 精品福利在线导航| 国产一区二区精品在线观看| 日韩三级精品电影久久久| 午夜日韩在线电影| 在线综合亚洲欧美在线视频| 午夜影视日本亚洲欧洲精品| 欧美亚男人的天堂| 亚洲一区国产视频| 欧美视频中文字幕| 日韩成人精品视频| 欧美电视剧免费观看| 精品影院一区二区久久久| 精品国产乱子伦一区| 国内一区二区在线| 欧美国产精品v| 色综合欧美在线视频区| 亚洲成人在线网站| 日韩欧美一区二区视频| 国产在线乱码一区二区三区| 国产丝袜在线精品| 国产在线不卡视频| 91精品婷婷国产综合久久| 亚洲成人精品在线观看| 欧美日韩情趣电影| 蜜臀av性久久久久av蜜臀妖精| 91精品国产综合久久精品麻豆| 天堂久久久久va久久久久| 91精品久久久久久久久99蜜臂| 久久精品国产亚洲高清剧情介绍 | 久久 天天综合| 欧美国产日产图区| 欧美性猛交xxxxxxxx| 日韩国产欧美在线播放| 久久久蜜臀国产一区二区| 国产成人精品1024| 亚洲午夜电影在线观看| 日韩三级视频中文字幕| 丁香五精品蜜臀久久久久99网站| 亚洲黄色片在线观看|