Instruction manual
AMPDIO DRIVERS
Page 170
generate the update interrupts. One of the
following pre-defined constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
MinF float: output frequency corresponding to user
value 0.
MaxF float.: output frequency corresponding to user
value 2147483647 (7FFFFFFF
16
).
Returns short: User CO handle (>= 0). Use this handle to call TCfreeDCO when
finished.
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCUserCOCallback
enableInterrupts
TCfreeDCO
6.4.10.3 User Controlled Oscillator Callback — TCUserCOCallback
Function to be implemented in the user’s code. The user will need to pass a pointer to the
function (which has a user-supplied name) to TCsetUserCO. It must be declared as
‘CALLBACK’ . It is called following an update timer interrupt. This function can be used to
adjust the frequency output of the user-controlled oscillator using TCsetUserCOLevel.
TCUserCOCallback (h, hCO, count)
where h short: board handle as issued by the
registerBoardEx function.
hCO short: handle of user controlled oscillator as
issued by the TCsetUserCO function.
count unsigned long: counter value read from the
timer/counter channel used as the update
counter. This value is likely to be of no use
whatsoever.
Returns void.
Prior Calls registerBoardEx
TCsetUserCO
enableInterrupts
See Also TCsetUserCOLevel