/*****************************************/
INT i_EepromReadMainHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, struct comedi_device *dev);
+ char *pc_PCIChipInformation, struct comedi_device *dev);
INT i_EepromReadDigitalInputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_DigitalInputHeader * s_Header);
INT i_EepromReadDigitalOutputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_DigitalOutputHeader * s_Header);
INT i_EepromReadTimerHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_TimerMainHeader * s_Header);
INT i_EepromReadAnlogOutputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_AnalogOutputHeader * s_Header);
INT i_EepromReadAnlogInputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_AnalogInputHeader * s_Header);
/******************************************/
/* Eeprom Specific Functions */
/******************************************/
-WORD w_EepromReadWord(WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation,
+WORD w_EepromReadWord(WORD w_PCIBoardEepromAddress, char *pc_PCIChipInformation,
WORD w_EepromStartAddress);
void v_EepromWaitBusy(WORD w_PCIBoardEepromAddress);
void v_EepromClock76(DWORD dw_Address, DWORD dw_RegisterValue);
+----------------------------------------------------------------------------+
| Function Name : WORD w_EepromReadWord |
| (WORD w_PCIBoardEepromAddress, |
-| PCHAR pc_PCIChipInformation, |
+| char * pc_PCIChipInformation, |
| WORD w_EepromStartAddress) |
+----------------------------------------------------------------------------+
| Task : Read from eepromn a word |
+----------------------------------------------------------------------------+
| Input Parameters : WORD w_PCIBoardEepromAddress : PCI eeprom address |
| |
-| PCHAR pc_PCIChipInformation : PCI Chip Type. |
+| char *pc_PCIChipInformation : PCI Chip Type. |
| |
| WORD w_EepromStartAddress : Selected eeprom address |
+----------------------------------------------------------------------------+
+----------------------------------------------------------------------------+
*/
-WORD w_EepromReadWord(WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation,
+WORD w_EepromReadWord(WORD w_PCIBoardEepromAddress, char *pc_PCIChipInformation,
WORD w_EepromStartAddress)
{
BYTE b_DataLengthInBits)
{
- CHAR c_BitPos = 0;
+ char c_BitPos = 0;
DWORD dw_RegisterValue = 0;
void v_EepromCs76Read(DWORD dw_Address, WORD w_offset, PWORD pw_Value)
{
- CHAR c_BitPos = 0;
+ char c_BitPos = 0;
DWORD dw_RegisterValue = 0;
/*
+----------------------------------------------------------------------------+
| Function Name : INT i_EepromReadMainHeader(WORD w_PCIBoardEepromAddress, |
-| PCHAR pc_PCIChipInformation,struct comedi_device *dev) |
+| char * pc_PCIChipInformation,struct comedi_device *dev) |
+----------------------------------------------------------------------------+
| Task : Read from eeprom Main Header |
+----------------------------------------------------------------------------+
| Input Parameters : WORD w_PCIBoardEepromAddress : PCI eeprom address |
| |
-| PCHAR pc_PCIChipInformation : PCI Chip Type. |
+| char *pc_PCIChipInformation : PCI Chip Type. |
| |
| struct comedi_device *dev : comedi device structure |
| pointer |
*/
INT i_EepromReadMainHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, struct comedi_device *dev)
+ char *pc_PCIChipInformation, struct comedi_device *dev)
{
WORD w_Temp, i, w_Count = 0;
UINT ui_Temp;
/*
+----------------------------------------------------------------------------+
| Function Name : INT i_EepromReadDigitalInputHeader(WORD |
-| w_PCIBoardEepromAddress,PCHAR pc_PCIChipInformation, |
+| w_PCIBoardEepromAddress,char *pc_PCIChipInformation, |
| WORD w_Address,str_DigitalInputHeader *s_Header) |
| |
+----------------------------------------------------------------------------+
+----------------------------------------------------------------------------+
| Input Parameters : WORD w_PCIBoardEepromAddress : PCI eeprom address |
| |
-| PCHAR pc_PCIChipInformation : PCI Chip Type. |
+| char *pc_PCIChipInformation : PCI Chip Type. |
| |
| str_DigitalInputHeader *s_Header: Digita Input Header |
| Pointer |
+----------------------------------------------------------------------------+
*/
INT i_EepromReadDigitalInputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_DigitalInputHeader * s_Header)
{
WORD w_Temp;
/*
+----------------------------------------------------------------------------+
| Function Name : INT i_EepromReadDigitalOutputHeader(WORD |
-| w_PCIBoardEepromAddress,PCHAR pc_PCIChipInformation, |
+| w_PCIBoardEepromAddress,char *pc_PCIChipInformation, |
| WORD w_Address,str_DigitalOutputHeader *s_Header) |
| |
+----------------------------------------------------------------------------+
+----------------------------------------------------------------------------+
| Input Parameters : WORD w_PCIBoardEepromAddress : PCI eeprom address |
| |
-| PCHAR pc_PCIChipInformation : PCI Chip Type. |
+| char *pc_PCIChipInformation : PCI Chip Type. |
| |
| str_DigitalOutputHeader *s_Header: Digital Output Header|
| Pointer |
+----------------------------------------------------------------------------+
*/
INT i_EepromReadDigitalOutputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_DigitalOutputHeader * s_Header)
{
// Read Nbr channels
/*
+----------------------------------------------------------------------------+
| Function Name : INT i_EepromReadTimerHeader(WORD w_PCIBoardEepromAddress, |
-| PCHAR pc_PCIChipInformation,WORD w_Address, |
+| char *pc_PCIChipInformation,WORD w_Address, |
| str_TimerMainHeader *s_Header) |
+----------------------------------------------------------------------------+
| Task : Read Timer or Watchdog Header |
+----------------------------------------------------------------------------+
| Input Parameters : WORD w_PCIBoardEepromAddress : PCI eeprom address |
| |
-| PCHAR pc_PCIChipInformation : PCI Chip Type. |
+| char *pc_PCIChipInformation : PCI Chip Type. |
| |
| str_TimerMainHeader *s_Header: Timer Header |
| Pointer |
+----------------------------------------------------------------------------+
*/
INT i_EepromReadTimerHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_TimerMainHeader * s_Header)
{
/*
+----------------------------------------------------------------------------+
| Function Name : INT i_EepromReadAnlogOutputHeader(WORD |
-| w_PCIBoardEepromAddress,PCHAR pc_PCIChipInformation, |
+| w_PCIBoardEepromAddress,char *pc_PCIChipInformation, |
| WORD w_Address,str_AnalogOutputHeader *s_Header) |
+----------------------------------------------------------------------------+
| Task : Read Nalog Output Header |
+----------------------------------------------------------------------------+
| Input Parameters : WORD w_PCIBoardEepromAddress : PCI eeprom address |
| |
-| PCHAR pc_PCIChipInformation : PCI Chip Type. |
+| char *pc_PCIChipInformation : PCI Chip Type. |
| |
| str_AnalogOutputHeader *s_Header:Anlog Output Header |
| Pointer |
*/
INT i_EepromReadAnlogOutputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_AnalogOutputHeader * s_Header)
{
WORD w_Temp;
/*
+----------------------------------------------------------------------------+
| Function Name : INT i_EepromReadAnlogInputHeader(WORD |
-| w_PCIBoardEepromAddress,PCHAR pc_PCIChipInformation, |
+| w_PCIBoardEepromAddress,char *pc_PCIChipInformation, |
| WORD w_Address,str_AnalogInputHeader *s_Header) |
+----------------------------------------------------------------------------+
| Task : Read Nalog Output Header |
+----------------------------------------------------------------------------+
| Input Parameters : WORD w_PCIBoardEepromAddress : PCI eeprom address |
| |
-| PCHAR pc_PCIChipInformation : PCI Chip Type. |
+| char *pc_PCIChipInformation : PCI Chip Type. |
| |
| str_AnalogInputHeader *s_Header:Anlog Input Header |
| Pointer |
// Reads only for ONE hardware component
INT i_EepromReadAnlogInputHeader(WORD w_PCIBoardEepromAddress,
- PCHAR pc_PCIChipInformation, WORD w_Address,
+ char *pc_PCIChipInformation, WORD w_Address,
str_AnalogInputHeader * s_Header)
{
WORD w_Temp, w_Offset;