
Nuvo-3100 Series User’s Manual
Copyright © 2014 Neousys Technology Inc. All Right Reserved.
Page 99 of 99
//Step 3, register the callback function
if ( ! RegisterCallbackDICOS(callback_function) )
{
printf("RegisterCallbackDICOS --> FAILED\n");
return -3;
}
printf("RegisterCallbackDICOS --> PASSED\n");
//Step 4, start the DI Change-of-State Interrupt
if ( ! StartDICOS() )
{
printf("StartDICOS --> FAILED\n");
return -4;
}
printf("StartDICOS --> PASSED\n");
printf("\npress any key to stop...\n");
system("pause >nul");
//Step 5, stop the DI Change-of-State Interrupt operation
if ( ! StopDICOS() )
{
printf("StopDICOS --> FAILED\n");
return -5;
}
printf("StopDICOS --> PASSED\n");
printf("\npress any key to exit...\n");
system("pause >nul");
return 0;
}