Instruction manual

AMPDIO DRIVERS
Page 171
6.4.10.4 Set User Controlled Oscillator Output Level — TCsetUserCOLevel
This function allows the user to set the frequency of the controlled oscillator declared using
TCsetUserCO. Provided so that the output frequency of the controlled oscillator can be set as
part of the user callback function; however, it can be called at any time.
i = TCsetUserCOLevel (h, hCO, value)
where h short: board handle as issued by the
registerBoardEx function.
hCO short: handle of user controlled oscillator as
issued by the TCsetUserCO function.
value unsigned long: value between 0 and
2147483647 (7FFFFFFF
16
) representing the
desired frequency.
Returns short: OK
or ERRHANDLE
Prior Calls registerBoardEx
TCsetUserCO
See Also TCUserCOCallback
TCfreeDCO
6.4.10.5 Free-up a DCO or User CO’s Timer/Counters TCfreeDCO
Frees the timer/counter & DIO resources used by a DCO, or User CO, as previously set up by
the TCsetDCO or TCsetUserCO function. Call this function when you’ve finished using the
DCO or User CO.
i = TCfreeDCO (h, hO)
where h short: board handle as issued by the
registerBoardEx function.
hO short: DCO handle or User CO handle, as
issued by the TCsetDCO or TCsetUserCO
function.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
TCsetDCO
TCsetUserCO
See Also disableInterrupts