This the second tutorial of the Writing Device Drivers series. There seems to be a lot of interest in the topic, so this article will pick up where the first left off. The main focus of these articles will be to build up little by little the knowledge needed to write device drivers. In this article, we will be building on the same example source code used in part one. In this article, we will expand on that code to include Read functionality, Handle Input/Ouput Controls also known as IOCTLs, and learn a bit more about IRPs.
標簽: the interest tutorial Drivers
上傳時間: 2016-01-28
上傳用戶:lmeeworm
This code implements the shortest path algorithm via the simple scheme and fibonacci heap data structure. It has 3 kinds of testing data input method : random input by computer, reading from the file, reading from the key board.
標簽: implements algorithm fibonacci the
上傳時間: 2013-12-23
上傳用戶:ynzfm
Easy-to-Use, Ultra-Tiny, Differential, 16-Bit Delta Sigma ADC With I2C Interface The LTC2453 is an ultra-tiny, fully differential, 16-bit, analog-to-digital converter. The LTC2453 uses a single 2.7V to 5.5V supply and communicates through an I2C interface. The ADC is available in an 8-pin, 3mm x 2mm DFN package. It includes an integrated oscillator that does not require any external components. It uses a delta-sigma modulator as a converter core and has no latency for multiplexed applications. The LTC2453 includes a proprietary input sampling scheme that reduces the average input sampling current several orders of magnitude lower than conventional delta-sigma converters. Additionally, due to its architecture, there is negligible current leakage between the input pins.
標簽: Differential Easy-to-Use Ultra-Tiny Interface
上傳時間: 2014-01-08
上傳用戶:鳳臨西北
簡單C編譯器生成的目標代碼是8086的匯編代碼(16位),可以在一般的PC上被像MASM之類的匯編編譯程序編譯,生成可執行文件后,在DOS或Windows控制臺下運行。 實現的語言定義如下: 語言類似于tiny語言,不支持過程調用,也就是只有一個main函數,無其他函數和全局變量 基本語句:注釋語句(/*…*/),輸入語句(int input(void) ),輸出語句(void output(int) ),賦值語句。這里的輸入輸出語句實際上類似于函數調用,可以看作是本語言內部的函數 算術運算符:+、—、*、/ 數據類型:整數.
上傳時間: 2016-02-06
上傳用戶:bakdesec
Windows Mobile平臺的日文輸入法,支持手寫。A sample UI for Japanese handwriting input that works with IME 3.1 and with Pocket IME.
上傳時間: 2016-02-20
上傳用戶:cxl274287265
詞典 Time Limit:3000MS Memory Limit:65536K Total Submit:2349 Accepted:603 Description 你旅游到了一個國外的城市。那里的人們說的外國語言你不能理解。不過幸運的是,你有一本詞典可以幫助你。 Input 首先輸入一個詞典,詞典中包含不超過100000個詞條,每個詞條占據一行。每一個詞條包括一個英文單詞和一個外語單詞,兩個單詞之間用一個空格隔開。而且在詞典中不會有某個外語單詞出現超過兩次。詞典之后是一個空行,然后給出一個由外語單詞組成的文檔,文檔不超過100000行,而且每行只包括一個外語單詞。輸入中出現單詞只包括小寫字母,而且長度不會超過10。 Output 在輸出中,你需要把輸入文檔翻譯成英文,每行輸出一個英文單詞。如果某個外語單詞不在詞典中,就把這個單詞翻譯成“eh”。 Sample Input dog ogday cat atcay pig igpay froot ootfray loops oopslay atcay ittenkay oopslay Sample Output cat eh loops Hint 輸入比較大,推薦使用C語言的I / O函數。
標簽: Limit Description Accepted 65536K
上傳時間: 2016-02-22
上傳用戶:fandeshun
/*************************************************************************************************** The 4×4-keyboard drivers *COMPANY NAME: WUYI UNIVERSITY *MODULE NAME: Keyboard drivers *WRITTEN BY: Pang Weicong *FUNCTION DESCRIPTION: Keyboard input processing *EDITION: The first edition V1.0 *DATE: 2007-04-16 *Copyright: (c)2007 Pang Weicong **************************************************************************************************/
標簽:
上傳時間: 2014-01-05
上傳用戶:xiaodu1124
The first task at hand is to set up the endpoints appropriately for this example. The following code switches the CPU clock speed to 48 MHz (since at power-on default it is 12 MHz), and sets up EP2 as a Bulk OUT endpoint, 4x buffered of size 512, and EP6 as a Bulk IN endpoint, also 4x buffered of size 512. This set-up utilizes the maximum allotted 4-KB FIFO space. It also sets up the FIFOs for manual mode, word-wide operation, and goes through a FIFO reset and arming sequence to ensure that they are ready for data operations
標簽: appropriately The endpoints following
上傳時間: 2013-12-02
上傳用戶:dianxin61
很好的搜索: 給你很多長度不定的木棒,將他們分成幾組,每組中的總長度作為這組的標示值,請給出一種分組方法,能使得所有標示值中的最小值最大。 Input 多組,每組兩行,第一行是一個N和K,代表有N根木棒,分成K組,第二行是N個數字,代表木棒的長度。(N不超過100,K不超過20,每根木棒長度不超過1000) Output 輸出所有標示值中的最小值的最大值。 Sample Input 5 3 1 3 5 7 9 5 3 89 59 68 35 29 Sample Output 8 89
上傳時間: 2013-12-23
上傳用戶:nairui21
簡單的floyd運用 第一行輸入一個整數C。C是測試的情況(0< C <=30).第二行一個正整數N( 0< N <=100),表示道路的總數.緊接N行,每一行包含兩個字符串, Si,,Ti,和一個整數Di,代表從Si到Ti的距離(0<= Di <=150)。最后一行有兩個字符串,S 和 T,你得找出從S 到 T的最短的距離。地名是不超過120個小寫字符的串(從‘a’到‘z’)。假設這里最多有100條直接連通兩個地方的路。 Output 輸出包含C行,每一行對一種測試情況。對每一種測試情況,輸出包含一個整數,假如S 到 T存在一條最短的路,輸出從S到T的最短距離,否則輸出“-1”. Sample Input 2 2 jiuzhouriver liuchi 89 liuchi liyuan 100 liuchi jiuzhouriver 3 youyongchi fengyuan 100 qinshi meiyuan 100 chaochang supermarkt 100 meiyuan youyongchi Sample Output 89 -1
上傳時間: 2016-03-10
上傳用戶:wyc199288