Description
Example
4.14.5
TIMER_DEVICE_CNT
Constant
Description
4.14.6
TIMER_GetCount
Function
Arguments
Return Value
Description
Example
4.14.7
TIMER_GetDatin
Function
Arguments
Return Value
Description
Example
Sets up the timer using the register values passed in. The register val-
ues are written to the timer registers. The timer control register ( ctl ) is
written last. See also TIMER_ConfigA().
You may use literal values for the arguments or for readability. You may
use the TIMER_MK macros to create the register values based on field
values.
TIMER_ConfigB (LTimer, 0x000002C0, 0x00010000,
0x00000000);
A compile time constant; number of timer devices
present.
Returns the current timer count value
UINT32 TIMER_GetCount(
TIMER_HANDLE hTimer
);
hTimer
Count Value
Returns the current timer count value.
cnt = TIMER_GetCount(hTimer);
Reads the value of the TINP pin
int TIMER_GetDatin(
TIMER_HANDLE hTimer
);
Device handle. See TIMER_Open().
hTimer
Returns DATIN, value on TINP pin; 0 or 1
DATIN
This function reads the value of the TINP pin.
tinp = TIMER_GetDatin();
TIMER_DEVICE_CNT
Compile time constant; number of timer de-
vices present.
Device handle. See TIM-
ER_Open().
CSL API Reference
TIMER
4-121
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?