D) Example For Windows Nt And Windows 95/98 (In Synchronous Mode) - Addi-Data ADDINUM CPCI-1500 Technical Description

Digital inputs and outputs for the pci/compactpci bus
Hide thumbs Also See for ADDINUM CPCI-1500:
Table of Contents

Advertisement

APCI-/CPCI-1500

d) Example for Windows NT and Windows 95/98 (in synchronous mode)

typedef struct
{
unsigned char b_EventCpt [2], b_TimerCounterCpt [3];
unsigned char b_WatchdogCpt, b_VoltageErrorCpt;
}str_UserStruct;
_VOID_ v_InterruptRoutine (BYTE_ b_BoardHandle, BYTE_ b_InterruptMask,
{
str_UserStruct * ps_UserStruct = (str_UserStruct *) pv_UserSharedMemory;
{
if (b_InterruptMask & 0x1)
{
ps_UserStruct->b_EventCpt [0] = ps_UserStruct->b_EventCpt [0] + 1;
}
if (b_InterruptMask & 0x1)
{
ps_UserStruct->b_EventCpt [1] = ps_UserStruct->b_EventCpt [1] + 1;
}
if (b_InterruptMask & 0x4)
{
ps_UserStruct->b_TimerCounterCpt [0] = ps_UserStruct->b_TimerCounterCpt [0] + 1;
}
if (b_InterruptMask & 0x8)
{
ps_UserStruct->b_TimerCounterCpt [1] = ps_UserStruct->b_TimerCounterCpt [1] + 1;
}
if (b_InterruptMask & 0x10)
{
ps_UserStruct->b_TimerCounterCpt [2] = ps_UserStruct->b_TimerCounterCpt [2] + 1;
}
if (b_InterruptMask & 0x20)
{
ps_UserStruct->b_WatchdogCpt = ps_UserStruct->b_WatchdogCpt + 1;
}
if (b_InterruptMask & 0xC0)
{
ps_UserStruct-> ps_UserStruct->b_VoltageErrorCpt = b_VoltageErrorCpt + 1;
}
102
BYTE_b_InputChannelNbr, BYTE_ b_UserCallingMode,
VOID *pv_UserSharedMemory)
/* Event port 1 interrupt */
/* Event port 2 interrupt */
/* Timer/Counter 1 interrupt */
/* Timer/Counter 2 interrupt */
/* Counter 3 interrupt */
/* Watchdog interrupt */
/* Voltage error */
Technical description
Chapter 10

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADDINUM CPCI-1500 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Addinum apci-1500

Table of Contents