ADLINK cPCI-9116 User Manual
Page 89
 
C++ Library
• 79
6.12.4 _9116_GP0_Set_GATE_SRC
@ Description
This function is used to select the gate source of GPTC. When internal 
gate source is selected, you can use function _9116_GP0_EN to 
enable/disable the counting. 
@ Syntax
C/C++ (DOS)
int _9116_GP0_Set_GATE_SRC( I16 card_number, U8 gate_src )
@ Argument
card_number:
the card number of cPCI-9116 to be initialized, 
totally 4 cards can be initialized, the valid card 
numbers are CARD_1, CARD_2, CARD_3, 
CARD_4. 
gate_src :
0: internal gate source
 1: external clock source from pin97 of J1 
 
@ Return Code
ERR_NoError 
ERR_BoardNoInit 
6.12.5 _9116_GP0_Set_UPDOWN_SRC
@ Description
This function is used to select the up/down control source of GPTC. 
When internal source is selected, you can use function 
_9116_GP0_Set_UPDOWN() to select up/down counter operation. 
@ Syntax
C/C++ (DOS)
Int 9116_GP0_Set_UPDOWN_SRC( I16 card_number, U8
updown_src )
@ Argument
card_number:
the card number of cPCI-9116 to be initialized, 
totally 4 cards can be initialized, the valid card 
numbers are CARD_1, CARD_2, CARD_3, 
CARD_4. 
Updown_src: 0: internal source 
 1: external source from pin98 of J1