![Neousys Technology POC-551VTC Series User Manual Download Page 110](http://html1.mh-extra.com/html/neousys-technology/poc-551vtc-series/poc-551vtc-series_user-manual_1667799110.webp)
POC-551VTC
110
//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;
}