ax5214h.txt Driver File Contents (AS59099V2_0.zip)

[AX5214H - 48 Bit DIO Board]

Function:
   ax5214HInit

Description:
   Initialize the device.

   int ax5214HInit(int base_addr, int function);
   base_addr: I/O base address of the device.
   function: Function ID.

Remarks:
   This function should be called once before the device performming any data
   I/O functions. The function ID could be either of the constants listing below
   or any combinition of them:
      ID_FUNC_DI
      ID_FUNC_DO
      ID_FUNC_ALL

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function: ax5214HTerm

Description:
   Terminate the device driver.

   int ax5214HTerm(int base_addr);
   base_addr: I/O base address of the device.

Remarks:
   This function should be called once if the device will no longer performming
   any data I/O functions. Usually at the end of you data acquisition/control
   processes.

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HGetDevAtbu

Description:
   Retrieve the device attribute.

   int ax5214HGetDevAtbu(LPDEVATBU lpDevAtbu);
   lpDevAtbu: Pointer to the DEVATBU struct, which stores the device attribute.

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HDIOSetting

Description:
   Setting up for the I/O direction of individual group.

   int ax5214HDIOSetting(int base_addr, int grp, int ctrlport);
   base_addr: I/O base address of the device.
   grp: Group number of connector on the device.
   ctrlport: The control port register data.

Remarks:
   Use this function to setup the individual port I/O direction of each group.

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HIRQSetting

Description:
   Setting up the interrupt service routine for digital input via interrupt.

   int ax5214HIRQSetting(int base_addr, void ISR(*isr)());
   base_addr: I/O base address of the device.
   *isr: The user specified interrupt service routine.

Remarks:
   Use this function to specified the interrupt service routine. Each time
   the interrupt was generated, the *isr will be called.

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HIRQRestore

Description:
   Restore the old interrupt service routine.

   int ax5214HIRQRestore(int IRQNo);
   IRQNo: IRQ number specified in the ax5214HIRQSetting function.

Remarks:
   Use this function to restore the interrupt service routine. Call this
   function everytime if ax5214HIRQSetting was called, and before the
   ax5214HTerm was called.

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HDI

Description:
   Digital input function for specified channel.

   int ax5214HDI(int base_addr, int chan, int* data);
   base_addr: I/O base address of the device.
   chan: Channel to perform DI function.
   data: Pointer to storage of digital input status.

Remarks:
   This function will retrieve the one and only specified channel for it's
   digital input status. The channels are 0(GRP#1 PA0) to 47(GRP#2 PC7).

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HDI_P

Description:
   Digital input function for specified port(8-bit).

   int ax5214HDI_P(int base_addr, WORD grp_port, int* data);
   base_addr: I/O base address of the device.
   grp_port: group and port to perform DI function.
   data: Storage for digital input status.

Remarks:
   This function will retrieve all the digital input status of channels in
   the same port. The group no. are from 1 to 2, and port no PA to PC are 0
   to 2. For group 2 port B, the grp_port should be 0x0201.

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HDO

Description:
   Digital output function for specified channel.

   int ax5214HDO(int base_addr, int chan, int data);
   base_addr: I/O base address of the device.
   chan: channel to proform digital output function.
   data: Digital output status.0:LOW, 1:HIGH.

Remarks:
   Use this function to output a LOW/HIGH signal to specified channel. The
   channels are 0(GRP#1 PA0) to 47(GRP#2 PC7).

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.


Function:
   ax5214HDO_P

Description:
   Digital output function for specified port(8-bit).

   int ax5214HDO_P(int base_addr, WORD grp_port, int data);
   base_addr: I/O base address of the device.
   grp_port: group and port to perform DI function.
   data: Digital output status for a port(8-channel).

Remarks:
   Use this function to output signals(LOW/HIGH) at once for channels in
   the same port. The group no. are from 1 to 2, and port no PA to PC are
   0 to 2. For group 2 port B, the grp_port should be 0x0201.

Return Values:
   This function will return an error code defined in the ERROR CODE LIST of
   AXDDR include file(axddr.h). Please be sure to check this returned value to
   determine whether the function call succeed or not. If there're no any error
   occured, the return value should be ERR_NOERR. Otherwise, the value will be
   the one defined in ERROR CODE LIST.
Download Driver Pack

How To Update Drivers Manually

After your driver has been downloaded, follow these simple steps to install it.

  • Expand the archive file (if the download file is in zip or rar format).

  • If the expanded file has an .exe extension, double click it and follow the installation instructions.

  • Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.

  • Find the device and model you want to update in the device list.

  • Double-click on it to open the Properties dialog box.

  • From the Properties dialog box, select the Driver tab.

  • Click the Update Driver button, then follow the instructions.

Very important: You must reboot your system to ensure that any driver updates have taken effect.

For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.

server: web4, load: 0.87