RTXI 1.3
comedi/comedi/drivers/addi-data/addi_eeprom.c File Reference

Go to the source code of this file.

Classes

struct  str_Functionality
struct  str_MainHeader
struct  str_DigitalInputHeader
struct  str_DigitalOutputHeader
struct  str_TimerDetails
struct  str_TimerMainHeader
struct  str_AnalogOutputHeader
struct  str_AnalogInputHeader

Defines

#define NVCMD_BEGIN_READ   (0x7 << 5 )
#define NVCMD_LOAD_LOW   (0x4 << 5 )
#define NVCMD_LOAD_HIGH   (0x5 << 5 )
#define EE76_CMD_LEN   13
#define EE_READ   0x0180
#define WORD   unsigned short
#define PWORD   unsigned short *
#define PDWORD   unsigned int *
#define DWORD   unsigned int
#define EEPROM_DIGITALINPUT   0
#define EEPROM_DIGITALOUTPUT   1
#define EEPROM_ANALOGINPUT   2
#define EEPROM_ANALOGOUTPUT   3
#define EEPROM_TIMER   4
#define EEPROM_WATCHDOG   5
#define EEPROM_TIMER_WATCHDOG_COUNTER   10

Functions

INT i_EepromReadMainHeader (WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation, comedi_device *dev)
INT i_EepromReadDigitalInputHeader (WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation, WORD w_Address, str_DigitalInputHeader *s_Header)
INT i_EepromReadDigitalOutputHeader (WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation, WORD w_Address, str_DigitalOutputHeader *s_Header)
INT i_EepromReadTimerHeader (WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation, WORD w_Address, str_TimerMainHeader *s_Header)
INT i_EepromReadAnlogOutputHeader (WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation, WORD w_Address, str_AnalogOutputHeader *s_Header)
INT i_EepromReadAnlogInputHeader (WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation, WORD w_Address, str_AnalogInputHeader *s_Header)
WORD w_EepromReadWord (WORD w_PCIBoardEepromAddress, PCHAR pc_PCIChipInformation, WORD w_EepromStartAddress)
VOID v_EepromWaitBusy (WORD w_PCIBoardEepromAddress)
VOID v_EepromClock76 (DWORD dw_Address, DWORD dw_RegisterValue)
VOID v_EepromSendCommand76 (DWORD dw_Address, DWORD dw_EepromCommand, BYTE b_DataLengthInBits)
VOID v_EepromCs76Read (DWORD dw_Address, WORD w_offset, PWORD pw_Value)

Define Documentation

#define DWORD   unsigned int

Definition at line 59 of file addi_eeprom.c.

#define EE76_CMD_LEN   13

Definition at line 51 of file addi_eeprom.c.

#define EE_READ   0x0180

Definition at line 52 of file addi_eeprom.c.

#define EEPROM_ANALOGINPUT   2

Definition at line 64 of file addi_eeprom.c.

#define EEPROM_ANALOGOUTPUT   3

Definition at line 65 of file addi_eeprom.c.

#define EEPROM_DIGITALINPUT   0

Definition at line 62 of file addi_eeprom.c.

#define EEPROM_DIGITALOUTPUT   1

Definition at line 63 of file addi_eeprom.c.

#define EEPROM_TIMER   4

Definition at line 66 of file addi_eeprom.c.

#define EEPROM_TIMER_WATCHDOG_COUNTER   10

Definition at line 68 of file addi_eeprom.c.

#define EEPROM_WATCHDOG   5

Definition at line 67 of file addi_eeprom.c.

#define NVCMD_BEGIN_READ   (0x7 << 5 )

Copyright (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 USA

You shoud also find the complete GPL in the COPYING file accompanying this source code.

Definition at line 48 of file addi_eeprom.c.

#define NVCMD_LOAD_HIGH   (0x5 << 5 )

Definition at line 50 of file addi_eeprom.c.

#define NVCMD_LOAD_LOW   (0x4 << 5 )

Definition at line 49 of file addi_eeprom.c.

#define PDWORD   unsigned int *

Definition at line 56 of file addi_eeprom.c.

#define PWORD   unsigned short *

Definition at line 55 of file addi_eeprom.c.

#define WORD   unsigned short

Definition at line 54 of file addi_eeprom.c.


Function Documentation

INT i_EepromReadAnlogInputHeader ( WORD  w_PCIBoardEepromAddress,
PCHAR  pc_PCIChipInformation,
WORD  w_Address,
str_AnalogInputHeader s_Header 
)

Definition at line 1122 of file addi_eeprom.c.

INT i_EepromReadAnlogOutputHeader ( WORD  w_PCIBoardEepromAddress,
PCHAR  pc_PCIChipInformation,
WORD  w_Address,
str_AnalogOutputHeader s_Header 
)

Definition at line 1084 of file addi_eeprom.c.

INT i_EepromReadDigitalInputHeader ( WORD  w_PCIBoardEepromAddress,
PCHAR  pc_PCIChipInformation,
WORD  w_Address,
str_DigitalInputHeader s_Header 
)

Definition at line 942 of file addi_eeprom.c.

INT i_EepromReadDigitalOutputHeader ( WORD  w_PCIBoardEepromAddress,
PCHAR  pc_PCIChipInformation,
WORD  w_Address,
str_DigitalOutputHeader s_Header 
)

Definition at line 987 of file addi_eeprom.c.

INT i_EepromReadMainHeader ( WORD  w_PCIBoardEepromAddress,
PCHAR  pc_PCIChipInformation,
comedi_device dev 
)

Definition at line 807 of file addi_eeprom.c.

INT i_EepromReadTimerHeader ( WORD  w_PCIBoardEepromAddress,
PCHAR  pc_PCIChipInformation,
WORD  w_Address,
str_TimerMainHeader s_Header 
)

Definition at line 1018 of file addi_eeprom.c.

VOID v_EepromClock76 ( DWORD  dw_Address,
DWORD  dw_RegisterValue 
)

Definition at line 450 of file addi_eeprom.c.

VOID v_EepromCs76Read ( DWORD  dw_Address,
WORD  w_offset,
PWORD  pw_Value 
)

Definition at line 656 of file addi_eeprom.c.

VOID v_EepromSendCommand76 ( DWORD  dw_Address,
DWORD  dw_EepromCommand,
BYTE  b_DataLengthInBits 
)

Definition at line 521 of file addi_eeprom.c.

VOID v_EepromWaitBusy ( WORD  w_PCIBoardEepromAddress)

Definition at line 384 of file addi_eeprom.c.

WORD w_EepromReadWord ( WORD  w_PCIBoardEepromAddress,
PCHAR  pc_PCIChipInformation,
WORD  w_EepromStartAddress 
)

Definition at line 179 of file addi_eeprom.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines