Acrosser AR-B104D User Manual
Page 8
AR-B104D Software Programming Guide
4
XXX_SetCallbackFunc (i16 CardNum, agc_callback_t func)
♦
Argument
CardNum: The card number of AR-B104D. Range from 1~4.
func: The callback function pointer.
♦
Example
void IOIST(event Event)
{
switch( Event.Type )
{
case INPUT:
printf("Get input event: Channel %d is %s.\n", Event.Channel,
(Event.Value)? "high":"low");
break;
case COUNTER_TO:
printf("Get counter timeout event: Counter %d, value = %d.\n",
Event.Channel, Event.Value);
break;
case COUNTER_OF:
printf("Get counter overflow event: Counter %d.\n", Event.Channel);
break;
case PG_FIN:
printf("Get pluse generator finish event: PG %d.\n", Event.Channel);
break;
case TIMER_FIN:
printf("Get timer finish event: Timer %d.\n", Event.Channel);
break;
case COUNTER_REACH:
printf("Get counter reach event: Counter %d.\n", Event.Channel,
Event.Value);
}
- AR-N6000 (28 pages)
- AND-D525N2 (38 pages)
- AND-D525N2 (30 pages)
- ANR-IB75N1/A/B (76 pages)
- ANR-IB75N1/A/B (60 pages)
- ANR-IH61N1/A/B (73 pages)
- ANR-IH61N1/A/B (57 pages)
- AR-R6000 (22 pages)
- AR-R6000 (32 pages)
- AR-ES0631ET (11 pages)
- AR-ES0631ET (15 pages)
- AR-R5800 (40 pages)
- AR-R5800 (58 pages)
- AR-R5800A (40 pages)
- AR-R5800 (40 pages)
- AR-R5800 (58 pages)
- AR-R5800 (58 pages)
- AR-N8601 (10 pages)
- AR-N8601 (31 pages)
- AR-R5700 (13 pages)
- AR-R6006 (24 pages)
- AR-R6006 (35 pages)
- AR-R6006 (24 pages)
- AR-R6006 (35 pages)
- AR-R8601E16 (8 pages)
- AR-N8601FL (37 pages)
- AR-N5205A (13 pages)
- AR-R5205FL (12 pages)
- AR-R5500 (10 pages)
- AR-B1550 (32 pages)
- AR-B1550 (32 pages)
- AR-B1550 (32 pages)
- AR-B1550 (37 pages)
- AR-B1551 (34 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1893 (35 pages)
- AR-B1893 (35 pages)
- AR-B1841 (36 pages)
- AR-B104D (7 pages)