Public Data Types, Enumerations, and Macros
parameter (a
Value
ing of the
Value
Table 8-3
also describes the
Table 8-3. Commands Executed for General-Purpose Timers
Command ID
ADI_TMR_GP_CMD_TABLE
ADI_TMR_GP_CMD_END
ADI_TMR_GP_CMD_PAIR
ADI_TMR_GP_CMD_SET_PERIOD
ADI_TMR_GP_CMD_SET_WIDTH
ADI_TMR_GP_CMD_GET_WIDTH
ADI_TMR_GP_CMD_GET_COUNTER
ADI_TMR_GP_CMD_SET_TIMER_MODE
ADI_TMR_GP_CMD_SET_PULSE_HI
ADI_TMR_GP_CMD_SET_COUNT_METHOD
8-36
type) is also passed to the function. The mean-
void *
parameter depends on the command ID being passed.
parameter for each command ID.
Value
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
Value
ADI_TMR_GP_CMD_VA
LUE_PAIR *
Ignored
ADI_TMR_GP_CMD_VA
LUE_PAIR *
u32
u32
u32 *
u32 *
– reserved
0
– PWM
1
– WDTH_CAP
2
– EXT_CLK
3
– positive action
TRUE
pulse
– negative
FALSE
action pulse
– count to end
TRUE
of period
– count to end
FALSE
of width
Description
Start of command
table
End of command table
Command pair
Sets the period value
for the timer.
Sets the width value
for the timer.
Stores the current
width value for the
timer in the specified
location.
Stores the counter
value for the timer in
the specified location.
Sets the operating
mode of the timer.
Sets the pulse action of
the timer.
Sets the count method.
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?