Create a User Interrupt Function

Universal Driver Documentation
The programmer must first write a user interrupt function. This function must have a void return value, and a single void* parameter. This is for WinDriver compatibility. It is not possible to pass parameters into the user interrupt function. When the user's function is called, the void* parameter will always be NULL (0). The function below is a sample function that will simply increment a global counter variable.

void MyUserInterruptFunction(void* param)
{
	counter++;
}


This page was last modified 12:43, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.