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

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

?? hwdrv_apci3200.c

?? 最新版comedi的源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
/**@verbatimCopyright (C) 2004,2005  ADDI-DATA GmbH for the source code of this module.                 ADDI-DATA GmbH         Dieselstrasse 3         D-77833 Ottersweier         Tel: +19(0)7223/9493-0         Fax: +49(0)7223/9493-92         http://www.addi-data-com         info@addi-data.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USAYou shoud also find the complete GPL in the COPYING file accompanying this source code.@endverbatim*//*      +-----------------------------------------------------------------------+  | (C) ADDI-DATA GmbH          Dieselstra?e 3       D-77833 Ottersweier  |  +-----------------------------------------------------------------------+  | Tel : +49 (0) 7223/9493-0     | email    : info@addi-data.com         |  | Fax : +49 (0) 7223/9493-92    | Internet : http://www.addi-data.com   |  +-------------------------------+---------------------------------------+  | Project     : APCI-3200       | Compiler   : GCC                      |  | Module name : hwdrv_apci3200.c| Version    : 2.96                     |  +-------------------------------+---------------------------------------+  | Project manager: Eric Stolz   | Date       :  02/12/2002              |  +-------------------------------+---------------------------------------+  | Description :   Hardware Layer Acces For APCI-3200                    |  +-----------------------------------------------------------------------+  |                             UPDATES                                   |  +----------+-----------+------------------------------------------------+  |   Date   |   Author  |          Description of updates                |  +----------+-----------+------------------------------------------------+  | 02.07.04 | J. Krauth | Modification from the driver in order to       |  |          |           | correct some errors when using several boards. |  |          |           |                                                |  |          |           |                                                |  +----------+-----------+------------------------------------------------+  | 26.10.04 | J. Krauth | - Update for COMEDI 0.7.68                     |  |          |           | - Read eeprom value                            |  |          |           | - Append APCI-3300                             |  +----------+-----------+------------------------------------------------+  *//*  +----------------------------------------------------------------------------+  |                               Included files                               |  +----------------------------------------------------------------------------+*/#include "hwdrv_apci3200.h"//Begin JK 21.10.2004: APCI-3200 / APCI-3300 Reading of EEPROM values#include "addi_amcc_S5920.h"//#define PRINT_INFO//End JK 21.10.2004: APCI-3200 / APCI-3300 Reading of EEPROM values//BEGIN JK 06.07.04: Management of sevrals boards/*  INT i_CJCAvailable=1;   INT i_CJCPolarity=0;  INT i_CJCGain=2;//changed from 0 to 2   INT i_InterruptFlag=0;  INT i_ADDIDATAPolarity;  INT i_ADDIDATAGain;                    INT i_AutoCalibration=0;   //: auto calibration    INT i_ADDIDATAConversionTime;  INT i_ADDIDATAConversionTimeUnit;   INT i_ADDIDATAType;  INT i_ChannelNo;  INT i_ChannelCount=0;  INT i_ScanType;  INT i_FirstChannel;  INT i_LastChannel;  INT i_Sum=0;  INT i_Offset;  UINT ui_Channel_num=0;  static int i_Count=0;  INT i_Initialised=0;  UINT ui_InterruptChannelValue[96]; //Buffer*/str_BoardInfos s_BoardInfos [100]; // 100 will be the max number of boards to be used//END JK 06.07.04: Management of sevrals boards//Begin JK 21.10.2004: APCI-3200 / APCI-3300 Reading of EEPROM values/*+----------------------------------------------------------------------------+*//*| Function   Name   : INT i_AddiHeaderRW_ReadEeprom                          |*//*|                               (INT    i_NbOfWordsToRead,                   |*/ /*|                                DWORD dw_PCIBoardEepromAddress,             |*//*|                                WORD   w_EepromStartAddress,                |*//*|                                PWORD pw_DataRead)                          |*//*+----------------------------------------------------------------------------+*//*| Task              : Read word from the 5920 eeprom.                        |*//*+----------------------------------------------------------------------------+*//*| Input Parameters  : INT    i_NbOfWordsToRead : Nbr. of word to read        |*/ /*|                     DWORD dw_PCIBoardEepromAddress : Address of the eeprom |*//*|                     WORD   w_EepromStartAddress : Eeprom strat address     |*//*+----------------------------------------------------------------------------+*//*| Output Parameters : PWORD pw_DataRead : Read data                          |*/                                                     /*+----------------------------------------------------------------------------+*//*| Return Value      : -                                                      |*//*+----------------------------------------------------------------------------+*/INT i_AddiHeaderRW_ReadEeprom (INT    i_NbOfWordsToRead,                               DWORD dw_PCIBoardEepromAddress,                               WORD   w_EepromStartAddress,                               PWORD pw_DataRead){  DWORD dw_eeprom_busy=0;      INT i_Counter=0;	  INT i_WordCounter;  INT i;  BYTE pb_ReadByte[1];  BYTE b_ReadLowByte = 0;  BYTE b_ReadHighByte = 0;  BYTE b_SelectedAddressLow = 0;  BYTE b_SelectedAddressHigh = 0;  WORD w_ReadWord = 0;     for (i_WordCounter = 0;i_WordCounter<i_NbOfWordsToRead;i_WordCounter++)    {      do	{                           	  dw_eeprom_busy = inl (dw_PCIBoardEepromAddress + AMCC_OP_REG_MCSR);	  dw_eeprom_busy=dw_eeprom_busy & EEPROM_BUSY;	}      while (dw_eeprom_busy==EEPROM_BUSY);      for(i_Counter=0;i_Counter<2;i_Counter++)        {	  b_SelectedAddressLow=(w_EepromStartAddress+i_Counter) % 256; //Read the low 8 bit part	  b_SelectedAddressHigh=(w_EepromStartAddress+i_Counter)/256;  //Read the high 8 bit part	  //Select the load low address mode	  outb (NVCMD_LOAD_LOW, dw_PCIBoardEepromAddress+AMCC_OP_REG_MCSR+3);	  //Wait on busy	  do	    {	      dw_eeprom_busy = inl (dw_PCIBoardEepromAddress + AMCC_OP_REG_MCSR);	      dw_eeprom_busy=dw_eeprom_busy & EEPROM_BUSY;	    }	  while(dw_eeprom_busy==EEPROM_BUSY);	  //Load the low address	  outb(b_SelectedAddressLow, dw_PCIBoardEepromAddress+AMCC_OP_REG_MCSR+2);	  //Wait on busy	  do	    {	      dw_eeprom_busy = inl (dw_PCIBoardEepromAddress + AMCC_OP_REG_MCSR);	      dw_eeprom_busy=dw_eeprom_busy & EEPROM_BUSY;	    }	  while(dw_eeprom_busy== EEPROM_BUSY);	  //Select the load high address mode	  outb(NVCMD_LOAD_HIGH, dw_PCIBoardEepromAddress+AMCC_OP_REG_MCSR+3);	  //Wait on busy	  do	    {	      dw_eeprom_busy = inl (dw_PCIBoardEepromAddress + AMCC_OP_REG_MCSR);	      dw_eeprom_busy=dw_eeprom_busy & EEPROM_BUSY;	    }	  while(dw_eeprom_busy== EEPROM_BUSY);	  //Load the high address	  outb (b_SelectedAddressHigh, dw_PCIBoardEepromAddress+AMCC_OP_REG_MCSR+2);	  //Wait on busy	  do	    {	      dw_eeprom_busy = inl (dw_PCIBoardEepromAddress + AMCC_OP_REG_MCSR);	      dw_eeprom_busy=dw_eeprom_busy & EEPROM_BUSY;	    }	  while(dw_eeprom_busy== EEPROM_BUSY);	  //Select the READ mode	  outb (NVCMD_BEGIN_READ, dw_PCIBoardEepromAddress+AMCC_OP_REG_MCSR+3);	  //Wait on busy	  do	    {	      dw_eeprom_busy = inl (dw_PCIBoardEepromAddress + AMCC_OP_REG_MCSR);	      dw_eeprom_busy=dw_eeprom_busy & EEPROM_BUSY;	    }	  while(dw_eeprom_busy== EEPROM_BUSY);	  //Read data into the EEPROM	  *pb_ReadByte = inb (dw_PCIBoardEepromAddress+AMCC_OP_REG_MCSR+2);	  //Wait on busy	  do	    {	      dw_eeprom_busy = inl (dw_PCIBoardEepromAddress + AMCC_OP_REG_MCSR);	      dw_eeprom_busy=dw_eeprom_busy & EEPROM_BUSY;	    }	  while(dw_eeprom_busy== EEPROM_BUSY);	  //Select the upper address part	  if(i_Counter==0)	    {   b_ReadLowByte=pb_ReadByte[0];	    }else	    {   b_ReadHighByte=pb_ReadByte[0];	    }                	  //Sleep	  for (i=0; i < 10000; i++);   	}      w_ReadWord=(b_ReadLowByte|( ( (unsigned short) b_ReadHighByte) *256) );            pw_DataRead[i_WordCounter]=w_ReadWord;      w_EepromStartAddress +=2; // to read the next word	       } // for (...) i_NbOfWordsToRead  return (0);}/*+----------------------------------------------------------------------------+*//*| Function   Name   : VOID v_GetAPCI3200EepromCalibrationValue (VOID)        |*//*+----------------------------------------------------------------------------+*//*| Task              : Read calibration value from the APCI-3200 eeprom.      |*//*+----------------------------------------------------------------------------+*//*| Input Parameters  : -                                                      |*//*+----------------------------------------------------------------------------+*//*| Output Parameters : -                                                      |*//*+----------------------------------------------------------------------------+*//*| Return Value      : -                                                      |*//*+----------------------------------------------------------------------------+*/VOID v_GetAPCI3200EepromCalibrationValue (DWORD dw_PCIBoardEepromAddress,					  str_BoardInfos *BoardInformations){  WORD w_AnalogInputMainHeaderAddress;  WORD w_AnalogInputComponentAddress;  WORD w_NumberOfModuls = 0;  WORD w_CurrentSources [2];  WORD w_ModulCounter = 0;  WORD w_FirstHeaderSize = 0;  WORD w_NumberOfInputs = 0;  WORD w_CJCFlag = 0;  WORD w_NumberOfGainValue = 0;  WORD w_SingleHeaderAddress = 0;  WORD w_SingleHeaderSize = 0;  WORD w_Input = 0;  WORD w_GainFactorAddress = 0;  WORD w_GainFactorValue [2];  WORD w_GainIndex = 0;  WORD w_GainValue = 0;     /*****************************************/  /** Get the Analog input header address **/  /*****************************************/   i_AddiHeaderRW_ReadEeprom (1, //i_NbOfWordsToRead			     dw_PCIBoardEepromAddress,			     0x116,//w_EepromStartAddress: Analog input header address			     &w_AnalogInputMainHeaderAddress);          /*******************************************/  /** Compute the real analog input address **/  /*******************************************/  w_AnalogInputMainHeaderAddress = w_AnalogInputMainHeaderAddress + 0x100;   /******************************/  /** Get the number of moduls **/  /******************************/    i_AddiHeaderRW_ReadEeprom (1, //i_NbOfWordsToRead			     dw_PCIBoardEepromAddress,			     w_AnalogInputMainHeaderAddress + 0x02,//w_EepromStartAddress: Number of conponment			     &w_NumberOfModuls);  for (w_ModulCounter = 0; w_ModulCounter < w_NumberOfModuls; w_ModulCounter ++)    {      /***********************************/      /** Compute the component address **/      /***********************************/      w_AnalogInputComponentAddress = w_AnalogInputMainHeaderAddress + (w_FirstHeaderSize * w_ModulCounter) + 0x04;          	         /****************************/      /** Read first header size **/      /****************************/      i_AddiHeaderRW_ReadEeprom (1, //i_NbOfWordsToRead				 dw_PCIBoardEepromAddress,				 w_AnalogInputComponentAddress, // Address of the first header  				 &w_FirstHeaderSize);                 w_FirstHeaderSize = w_FirstHeaderSize >> 4;      /***************************/      /** Read number of inputs **/      /***************************/      i_AddiHeaderRW_ReadEeprom (1, //i_NbOfWordsToRead				 dw_PCIBoardEepromAddress,				 w_AnalogInputComponentAddress + 0x06, // Number of inputs for the first modul  				 &w_NumberOfInputs);      w_NumberOfInputs = w_NumberOfInputs >> 4;      /***********************/      /** Read the CJC flag **/      /***********************/      i_AddiHeaderRW_ReadEeprom (1, //i_NbOfWordsToRead				 dw_PCIBoardEepromAddress,				 w_AnalogInputComponentAddress + 0x08, // CJC flag				 &w_CJCFlag);	         w_CJCFlag = (w_CJCFlag >> 3) & 0x1; // Get only the CJC flag

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕乱码一区二区免费| 美国十次了思思久久精品导航| 国产999精品久久久久久| 日韩欧美一级在线播放| 久久国产日韩欧美精品| 日韩一区二区免费高清| 久久99久久久欧美国产| 国产片一区二区三区| 不卡的看片网站| 一区二区三区加勒比av| 欧美日韩精品系列| 韩国一区二区三区| 日本一区二区免费在线观看视频| 欧美午夜寂寞影院| 理论电影国产精品| 国产精品免费aⅴ片在线观看| 91捆绑美女网站| 日韩中文字幕麻豆| 国产欧美va欧美不卡在线| 色综合久久综合网97色综合| 亚洲高清不卡在线观看| 2024国产精品| 99精品在线免费| 青草av.久久免费一区| 国产亚洲一区二区三区四区| 色综合天天综合狠狠| 五月天欧美精品| 欧美变态tickle挠乳网站| 国产成人av电影免费在线观看| 一区二区三区中文字幕精品精品| 日韩欧美的一区| 91香蕉视频黄| 韩国v欧美v日本v亚洲v| 国产精品成人在线观看| 欧美日本一区二区三区| 国产91丝袜在线播放九色| 亚洲一区二区三区视频在线播放| www激情久久| 欧美色图片你懂的| 国产精品羞羞答答xxdd| 亚洲福利一区二区三区| 国产亚洲综合色| 91精品在线免费观看| 97精品国产露脸对白| 韩国av一区二区| 亚洲午夜激情网页| 中文字幕二三区不卡| 91麻豆精品国产91| 在线看一区二区| 国产成人aaa| 免费成人在线视频观看| 亚洲一区欧美一区| 国产午夜精品一区二区三区视频| 欧美人成免费网站| 色悠悠久久综合| 成人午夜免费电影| 国产一区二区三区国产| 天天操天天色综合| 亚洲一二三专区| 亚洲三级免费观看| 欧美极品xxx| 久久久午夜电影| 欧美不卡在线视频| 91麻豆精品国产91久久久更新时间| 91蜜桃网址入口| 99精品视频一区二区| 国产精品一区二区久激情瑜伽| 日韩av一区二区在线影视| 亚洲精品成a人| 亚洲另类在线一区| 亚洲欧美另类图片小说| 国产精品素人一区二区| 国产三级欧美三级日产三级99| 精品久久国产老人久久综合| 欧美一区二区三区四区在线观看| 欧美久久久久久蜜桃| 欧美日韩一区二区三区四区| 在线观看一区日韩| 亚洲欧洲三级电影| 国产蜜臀av在线一区二区三区| 久久久777精品电影网影网 | 久久久久88色偷偷免费| 日韩美女视频在线| 日韩精品综合一本久道在线视频| 日韩视频免费直播| 精品乱人伦小说| 久久精品视频免费观看| 国产日产欧美精品一区二区三区| 国产日本欧美一区二区| 国产精品久久一卡二卡| 亚洲色图欧洲色图婷婷| 亚洲午夜久久久久久久久电影网| 亚洲线精品一区二区三区| 亚洲成a人v欧美综合天堂下载| 五月婷婷久久丁香| 久久国产剧场电影| 国产成人欧美日韩在线电影| 99视频超级精品| 欧美日韩在线播放| 欧美成人a视频| 国产精品欧美一级免费| 亚洲欧美一区二区久久| 五月天激情综合| 韩日欧美一区二区三区| 成人18视频日本| 欧美日韩国产a| 久久久久国产一区二区三区四区| 国产精品日韩成人| 午夜欧美在线一二页| 麻豆国产欧美日韩综合精品二区 | 国产三级欧美三级日产三级99| 亚洲欧洲av在线| 午夜欧美电影在线观看| 国产真实乱对白精彩久久| eeuss影院一区二区三区| 欧美日韩精品欧美日韩精品一| 欧美精品一区二区在线播放| 中文字幕一区二区三区四区不卡| 亚洲大片在线观看| 国产99久久久久久免费看农村| 欧美中文一区二区三区| 精品欧美一区二区在线观看| 国产精品久久久久久久久快鸭| 天堂成人免费av电影一区| 丁香另类激情小说| 亚洲久草在线视频| 老鸭窝一区二区久久精品| 99久久伊人精品| 欧美成人一区二区三区片免费| 亚洲欧美日韩人成在线播放| 美腿丝袜在线亚洲一区| 一本到不卡精品视频在线观看| 日韩欧美一二三区| 亚洲自拍偷拍麻豆| 国产91精品精华液一区二区三区| 欧美日韩亚洲综合| 专区另类欧美日韩| 国产精品香蕉一区二区三区| 欧美日韩高清在线| 亚洲日本一区二区三区| 国产精品一区二区视频| 91精品国产综合久久精品性色| 自拍偷拍亚洲激情| 国产精品一区二区三区乱码| 91精品国产综合久久久久| 亚洲午夜久久久久久久久久久| 成人app网站| 国产女主播视频一区二区| 久久精品国产秦先生| 欧美日韩一区中文字幕| 亚洲免费观看高清完整版在线| 大陆成人av片| 久久在线免费观看| 久久激五月天综合精品| 91精品一区二区三区在线观看| 亚洲线精品一区二区三区八戒| 91最新地址在线播放| 中文子幕无线码一区tr| 国产成人三级在线观看| 久久久影院官网| 国产一区二区伦理| 26uuu精品一区二区| 捆绑调教一区二区三区| 欧美一区二区三区男人的天堂| 亚洲成人黄色影院| 欧美猛男超大videosgay| 亚洲高清免费在线| 欧美日韩一区二区三区在线| 亚洲国产中文字幕| 欧美撒尿777hd撒尿| 夜夜揉揉日日人人青青一国产精品| 91欧美一区二区| 亚洲摸摸操操av| 欧美视频你懂的| 天天色综合天天| 亚洲一区二区三区中文字幕| 色噜噜夜夜夜综合网| 一区二区三区成人在线视频| 91极品美女在线| 午夜视频在线观看一区| 日韩一区二区三区精品视频| 精品一区二区三区在线播放视频| 2014亚洲片线观看视频免费| 国产毛片精品视频| 国产精品欧美一区喷水| 色拍拍在线精品视频8848| 亚洲国产精品视频| 日韩三级.com| 丁香桃色午夜亚洲一区二区三区| 18成人在线观看| 欧美三级三级三级| 另类欧美日韩国产在线| 欧美国产日产图区| 91成人在线观看喷潮| 性做久久久久久| 久久久精品免费观看| 色综合久久中文综合久久97| 婷婷综合久久一区二区三区| 精品免费日韩av| 99视频一区二区|