CDL Modules
Main Page
Modules
Data Structures
Files
File List
Globals
cdl
inc
timer.h
Go to the documentation of this file.
1
22
/*a Includes */
23
24
/*a Types */
25
/*t t_timer_control
26
*/
27
typedef
struct
{
28
bit reset_counter
"Assert to reset the timer counter to 0; this takes precedence over enable_counter"
;
29
bit enable_counter
"Assert to enable the timer counter; otherwise it holds its value"
;
30
bit block_writes
"Assert to block writes to the timer counter"
;
31
bit[8] bonus_subfraction_numer
"(n-1) in fractional n/16d increment per cycle"
;
32
bit[8] bonus_subfraction_denom
"(d-1) in fractional n/16d increment per cycle; If zero then no subfractional add"
;
33
bit[4] fractional_adder
"f in fraction f/16 to add per cycle"
;
34
bit[8] integer_adder
"integer amount to add to timer counter per cycle"
;
35
}
t_timer_control
;
36
37
/*t t_timer_value
38
*/
39
typedef
struct
{
40
bit irq
"Asserted if comparator >= timer value"
;
41
bit[64] value
"64-bit timer value, reflecting the value in the timer counter"
;
42
}
t_timer_value
;
t_timer_value
Definition:
timer.h:39
t_timer_control
Definition:
timer.h:27
Generated on Sun Sep 30 2018 17:21:43 for CDL Modules by
1.8.11