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

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

?? usbfx2lk_ioctl.h

?? 基于vc++6.0環境的cypress USB 驅動源代碼
?? H
字號:
///////////////////////////////////////////////////////////////////////////////
//
//    (C) Copyright 2005 OSR Open Systems Resources, Inc.
//    All Rights Reserved
//
//    This sofware is supplied for instructional purposes only.
//
//    OSR Open Systems Resources, Inc. (OSR) expressly disclaims any warranty
//    for this software.  THIS SOFTWARE IS PROVIDED  "AS IS" WITHOUT WARRANTY
//    OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
//    THE IMPLIED WARRANTIES OF MECHANTABILITY OR FITNESS FOR A PARTICULAR
//    PURPOSE.  THE ENTIRE RISK ARISING FROM THE USE OF THIS SOFTWARE REMAINS
//    WITH YOU.  OSR's entire liability and your exclusive remedy shall not
//    exceed the price paid for this material.  In no event shall OSR or its
//    suppliers be liable for any damages whatsoever (including, without
//    limitation, damages for loss of business profit, business interruption,
//    loss of business information, or any other pecuniary loss) arising out
//    of the use or inability to use this software, even if OSR has been
//    advised of the possibility of such damages.  Because some states/
//    jurisdictions do not allow the exclusion or limitation of liability for
//    consequential or incidental damages, the above limitation may not apply
//    to you.
//
//    OSR Open Systems Resources, Inc.
//    105 Route 101A Suite 19
//    Amherst, NH 03031  (603) 595-6500 FAX: (603) 595-6503
//    email bugs to: bugs@osr.com
//
//
//    MODULE:
//
//      USBFX2LK_Ioctl.h
//
//    ABSTRACT:
//
//
//    AUTHOR(S):
//
//      OSR Open Systems Resources, Inc.
// 
///////////////////////////////////////////////////////////////////////////////

//
// This header file contains all declarations shared between driver and user
// applications.
//

#ifndef __USBFX2LK_IOCTL_H__
#define __USBFX2LK_IOCTL_H__ (1)
#include <basetsd.h>

//
// The following value is arbitrarily chosen from the space defined by Microsoft
// as being "for non-Microsoft use"
//
#define FILE_DEVICE_OSRUSBFX2LK 65500

//
// OSRUSBFX2LK Interface Guid.
// {C5B7F228-CAFF-42d5-A472-6B9EDA7982EC}
//
DEFINE_GUID(GUID_OSR_USBFX2LK_INTERFACE, 
    0xc5b7f228, 0xcaff, 0x42d5, 0xa4, 0x72, 0x6b, 0x9e, 0xda, 0x79, 0x82, 0xec);


//
// Define the structures that will be used by the IOCTL 
//  interface to the driver
//

//
// USBFX2_PIPE_ENUM
//
//  For any IOCTL that works on a specific pipe 
//   (IOCTL_OSRUSBFX2_RESET_PIPE, for example) 
//   the input parameter will be a USBFX2_PIPE_ENUM
//   value to indicate which pipe the IOCTL is directed
//   to
//
typedef enum _USBFX2_PIPE_ENUM {

    USBFx2BulkInPipe = 0x5301979,
    USBFx2BulkOutPipe,
    USBFx2InterruptPipe

}USBFX2_PIPE_ENUM, *PUSBFX2_PIPE_ENUM;


//
// BAR_GRAPH_STATE
//
// BAR_GRAPH_STATE is a bit field structure with each
//  bit corresponding to one of the bar graph on the 
//  OSRFX2 Development Board
//
#include <pshpack1.h>
typedef struct _BAR_GRAPH_STATE {

    union {
 
        struct {
            //
            // Individual bars starting from the 
            //  top of the stack of bars 
            //
            // NOTE: There are actually 10 bars, 
            //  but the very top two do not light
            //  and are not counted here. Also
            //  note that the bars aren't actually
            //  wired the way that you might think
            //  that they are. Sending a "1" to the
            //  device actually lights the fourth
            //  bar from the bottom
            //
            UCHAR Bar4 : 1;
            UCHAR Bar5 : 1;
            UCHAR Bar6 : 1;
            UCHAR Bar7 : 1;
            UCHAR Bar8 : 1;
            UCHAR Bar1 : 1;
            UCHAR Bar2 : 1;
            UCHAR Bar3 : 1;
        };

        //
        // The state of all the bar graph as a single
        // UCHAR
        //
        UCHAR BarsAsUChar;

    };

}BAR_GRAPH_STATE, *PBAR_GRAPH_STATE;

//
// SWITCH_STATE
//
// SWITCH_STATE is a bit field structure with each
//  bit corresponding to one of the switches on the 
//  OSRFX2 Development Board
//
typedef struct _SWITCH_STATE {

    union {
        struct {
            //
            // Individual switches starting from the 
            //  left of the set of switches
            //
            UCHAR Switch1 : 1;
            UCHAR Switch2 : 1;
            UCHAR Switch3 : 1;
            UCHAR Switch4 : 1;
            UCHAR Switch5 : 1;
            UCHAR Switch6 : 1;
            UCHAR Switch7 : 1;
            UCHAR Switch8 : 1;
        };

        //
        // The state of all the switches as a single
        // UCHAR
        //
        UCHAR SwitchesAsUChar;

    };


}SWITCH_STATE, *PSWITCH_STATE;


// 
// IOCTL_OSRUSBFX2_GET_BAR_GRAPH_DISPLAY
//
// This IOCTL allows the user to get the state of the bar graph. 
//
// Input:
//  None.
//
// Output:
//  BAR_GRAPH_STATE
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_GET_BAR_GRAPH_DISPLAY \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x801, METHOD_BUFFERED, FILE_READ_ACCESS)


// 
// IOCTL_OSRUSBFX2_SET_BAR_GRAPH_DISPLAY
//
// This IOCTL allows the user to set the state of the bar graph. 
//
// Input:
//  BAR_GRAPH_STATE.
//
// Output:
//  None.
//
// Access Required:
//  Write.
//
#define IOCTL_OSRUSBFX2_SET_BAR_GRAPH_DISPLAY \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x802, METHOD_BUFFERED, FILE_WRITE_ACCESS)


// 
// IOCTL_OSRUSBFX2_READ_SWITCHES
//
// This IOCTL allows the user to get the state of the switches. 
//
// Input:
//  None.
//
// Output:
//  SWITCH_STATE
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_READ_SWITCHES \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x802, METHOD_BUFFERED, FILE_READ_ACCESS)


// 
// IOCTL_OSRUSBFX2_RESET_PIPE
//
// This IOCTL allows the user to reset a pipe. The pipe that 
//  is reset is the pipe that corresponds to the open handle
//  to which this IOCTL is sent
//
// Input:
//  PUSBFX2_PIPE_ENUM indicating which pipe to reset
//
// Output:
//  None.
//
// Access Required:
//  Write.
//
#define IOCTL_OSRUSBFX2_RESET_PIPE  \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x803, METHOD_BUFFERED, FILE_WRITE_ACCESS)


// 
// IOCTL_OSRUSBFX2_GET_DEVICE_DESCRIPTOR
//
// This IOCTL allows the user to get the USB device descriptor
//  for the device
//
// Input:
//  None.
//
// Output:
//  USB_DEVICE_DESCRIPTOR.
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_GET_DEVICE_DESCRIPTOR \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x804, METHOD_BUFFERED, FILE_READ_ACCESS)


// 
// IOCTL_OSRUSBFX2_GET_CONFIGURATION_DESCRIPTOR
//
// This IOCTL allows the user to get the USB configuration descriptor
//  for the device
//
// Input:
//  None.
//
// Output:
//  USB_CONFIGURATION_DESCRIPTOR.
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_GET_CONFIGURATION_DESCRIPTOR \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x805, METHOD_BUFFERED, FILE_READ_ACCESS)


// 
// IOCTL_OSRUSBFX2_GET_PIPE_INFORMATION
//
// This IOCTL allows the user to get the USB pipe descriptor
//  for the open pipe
//
// Input:
//  PUSBFX2_PIPE_ENUM indicating which pipe
//
// Output:
//  USBD_PIPE_INFORMATION.
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_GET_PIPE_INFORMATION \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x806, METHOD_BUFFERED, FILE_READ_ACCESS)


// 
// IOCTL_OSRUSBFX2_GET_7_SEGMENT_DISPLAY
//
// This IOCTL allows the user to get the state of the 7 Segment Display. 
//
// Input:
//  None.
//
// Output:
//  7 SEGMENT STATE
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_GET_7_SEGMENT_DISPLAY \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x808, METHOD_BUFFERED, FILE_READ_ACCESS)


// 
// IOCTL_OSRUSBFX2_SET_7_SEGMENT_DISPLAY
//
// This IOCTL allows the user to set the state of the 7 Segment display. 
//
// Input:
//  7 SEGMENT STATE.
//
// Output:
//  None.
//
// Access Required:
//  Write.
//
#define IOCTL_OSRUSBFX2_SET_7_SEGMENT_DISPLAY \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x809, METHOD_BUFFERED, FILE_WRITE_ACCESS)

// 
// IOCTL_OSRUSBFX2_GET_INTERFACE_INFORMATION
//
// This IOCTL allows the user to get the USB Interface Information
//  for the device
//
// Input:
//  None.
//
// Output:
//  USB_CONFIGURATION_DESCRIPTOR.
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_GET_INTERFACE_INFORMATION \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x810, METHOD_BUFFERED, FILE_READ_ACCESS)

// 
// IOCTL_OSRUSBFX2_GET_INTERRUPT_MESSAGE
//
// This IOCTL allows the user to get a USB Interrupt Message
//  from the device
//
// Input:
//  None.
//
// Output:
//  Interrupt Message
//
// Access Required:
//  Read.
//
#define IOCTL_OSRUSBFX2_GET_INTERRUPT_MESSAGE \
    CTL_CODE(FILE_DEVICE_OSRUSBFX2LK, 0x811, METHOD_BUFFERED, FILE_READ_ACCESS)

#endif /* __USBFX2LK_IOCTL_H__ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久免费视频.com| 不卡视频在线观看| 亚洲丝袜自拍清纯另类| 国产精品乱人伦| 国产精品青草综合久久久久99| 久久蜜桃av一区精品变态类天堂| 日韩免费性生活视频播放| 7777精品伊人久久久大香线蕉经典版下载 | 色综合久久久久久久久久久| 成人免费视频一区| 91亚洲男人天堂| 欧美影视一区在线| 欧美一级高清片| 久久视频一区二区| 中日韩免费视频中文字幕| 中文字幕在线不卡一区| 亚洲精品videosex极品| 日韩电影网1区2区| 国产一区高清在线| 99久久99久久久精品齐齐| 在线亚洲精品福利网址导航| 555夜色666亚洲国产免| 日韩精品一区二区三区在线播放 | 26uuu亚洲综合色欧美| 久久久不卡影院| 亚洲三级免费电影| 亚洲gay无套男同| 国产老妇另类xxxxx| 99在线精品一区二区三区| 欧美日韩另类一区| 久久久综合九色合综国产精品| 中文字幕亚洲不卡| 石原莉奈在线亚洲二区| 国产成人免费在线观看不卡| 色婷婷久久久亚洲一区二区三区| 欧美一区二区视频观看视频| 亚洲国产精华液网站w| 亚洲成av人片一区二区梦乃| 国产精品亚洲专一区二区三区| 99精品视频中文字幕| 欧美va天堂va视频va在线| 久久一区二区三区国产精品| 一区二区三区欧美日| 国产真实乱对白精彩久久| 91福利在线看| 国产欧美精品一区二区三区四区 | 欧美性xxxxxxxx| 国产三级一区二区| 三级久久三级久久| 97久久超碰国产精品| 久久久精品人体av艺术| 午夜精品久久久久影视| 99热精品一区二区| 欧美精品一区在线观看| 五月婷婷久久综合| 在线观看视频欧美| 国产精品毛片久久久久久| 国内精品国产成人国产三级粉色 | 欧美tickle裸体挠脚心vk| 一区二区三区国产精华| 大白屁股一区二区视频| 久久亚区不卡日本| 免费看欧美女人艹b| 欧美精品一二三四| 亚洲一区二区成人在线观看| 99久久99精品久久久久久| 中文在线资源观看网站视频免费不卡| 久久国产尿小便嘘嘘| 欧美伦理影视网| 亚洲大片精品永久免费| 欧美亚洲国产怡红院影院| 国产精品高潮呻吟| 97精品电影院| 亚洲欧洲av在线| 91蜜桃视频在线| 亚洲精品美腿丝袜| 欧日韩精品视频| 亚洲成人三级小说| 欧美一区二区三区在线电影| 日韩不卡一二三区| 日韩精品中文字幕一区| 狂野欧美性猛交blacked| 日韩一级大片在线| 国产一区二区精品久久91| 久久综合成人精品亚洲另类欧美| 久久成人免费电影| 精品国产精品一区二区夜夜嗨| 激情久久久久久久久久久久久久久久| 精品国产青草久久久久福利| 国产乱码字幕精品高清av | 国产精品久久久久久久久动漫| 高潮精品一区videoshd| 欧美国产激情一区二区三区蜜月| 国产a级毛片一区| 亚洲精品高清视频在线观看| 精品视频在线免费| 久久成人精品无人区| 久久精品视频网| 91麻豆123| 日韩av在线发布| 中文字幕免费在线观看视频一区| 91在线播放网址| 日本91福利区| 国产精品毛片a∨一区二区三区| 一本大道综合伊人精品热热| 婷婷六月综合网| 久久久精品免费观看| 91久久线看在观草草青青 | 精品国产一区二区三区av性色| 国产电影精品久久禁18| 亚洲狠狠丁香婷婷综合久久久| 欧美精品18+| 成人免费的视频| 欧美aaa在线| 国产精品剧情在线亚洲| 99久久久久久| 欧美三级三级三级| 麻豆精品一区二区三区| 中文字幕一区二区在线观看| 欧美片网站yy| 91一区二区在线观看| 麻豆国产欧美一区二区三区| 亚洲另类在线视频| 久久精品视频在线免费观看| 欧美精品日日鲁夜夜添| 成人av免费在线观看| 美女尤物国产一区| 亚洲综合精品自拍| 中文字幕精品—区二区四季| 日韩精品一区二区三区三区免费| 91丝袜国产在线播放| 国产精品资源在线| 日韩电影一区二区三区四区| 亚洲欧洲综合另类| 国产欧美日韩亚州综合| 欧美一区二区三区免费在线看| 色综合天天做天天爱| 丰满少妇在线播放bd日韩电影| 另类小说视频一区二区| 午夜精品福利一区二区三区av | 欧美r级电影在线观看| 欧美性色综合网| 91蝌蚪国产九色| 粉嫩aⅴ一区二区三区四区| 久久国产夜色精品鲁鲁99| 偷拍一区二区三区| 亚洲成精国产精品女| 亚洲男同性视频| 亚洲精品国产精品乱码不99 | 亚洲精品欧美激情| 1区2区3区欧美| 国产精品超碰97尤物18| 中文成人av在线| 自拍偷拍欧美精品| 亚洲欧洲无码一区二区三区| 中文字幕一区二区三区在线观看 | 精品国内二区三区| 欧美mv日韩mv国产| 久久久精品免费观看| 国产欧美日韩在线| 国产精品美女视频| 亚洲欧美视频在线观看| 亚洲精品国产精华液| 亚洲电影一区二区| 日韩精品91亚洲二区在线观看| 视频精品一区二区| 国模冰冰炮一区二区| 国产a区久久久| 色爱区综合激月婷婷| 欧美狂野另类xxxxoooo| 欧美xxx久久| 国产日韩精品一区二区三区| 国产精品成人在线观看| 亚洲制服欧美中文字幕中文字幕| 午夜精品久久久久久久99水蜜桃| 日韩电影在线一区二区三区| 国产一区不卡视频| 91欧美一区二区| 91精品国产综合久久久蜜臀图片| 日韩欧美精品在线视频| 亚洲国产精品99久久久久久久久| 亚洲三级在线观看| 青青草97国产精品免费观看| 国产一区二区主播在线| 色综合久久六月婷婷中文字幕| 制服丝袜日韩国产| 国产欧美va欧美不卡在线| 亚洲一级不卡视频| 国产精品1024| 欧美日韩免费不卡视频一区二区三区 | 国产一区二区在线观看免费| 99久久精品免费精品国产| 欧美精选一区二区| 国产精品视频九色porn| 日韩激情视频在线观看| 成人av午夜电影| 日韩精品综合一本久道在线视频| 亚洲色图制服诱惑| 国产麻豆精品视频| 欧美三级三级三级|