timer_capture_opt_t Struct Reference

#include <timer.h>


Detailed Description

Parameters when initializing a timer in capture mode.

Definition at line 121 of file timer.h.

Data Fields

int abetrg:1
 abetrg: External trigger selection. 0: TIOB 1: TIOA
int burst:2
 clock_burst: Specify a burst type for the clock.
0: Use the selected clock
1: XC0 is ANDed with the selected clock
2: XC1 is ANDed with the selected clock
3: XC2 is ANDed with the selected clock
int channel
 channel: The timer channel to use. Channel 0, 1 or 2 are valid selections
int clki:1
 clock_invert: Use raising (0) or falling edge (1) of the clock
int cpctrg:1
 cpctrg: Compare trigger enable: 0: disabled 1: RC compare resets counter and starts clock
int etrgedg:2
 etrgedg: External trigger selection.
0: none
1: rising edge
2: falling edge
3: each edge
int ldbdis:1
 ldbdis: To disable (1) or not to disable (0) the counter clock when RB loading occurs
int ldbstop:1
 ldbstop: To stop (1) or not to stop (0) when RB loading occurs
int ldra:2
 ldra: RA Loading selection.
0: none
1: Rising TIOA edge
2: Falling TIOA edge
3: Each TIOA edge
int ldrb:2
 ldrb: RB Loading selection.
0: none
1: Rising TIOB edge
2: Falling TIOB edge
3: Each TIOA edge
int tcclks:3
 clock_source: The clock source for the timer.
0: Timer Clock 1
1: Timer Clock 2
2: Timer Clock 3
3: Timer Clock 4
4: Timer Clock 5
5: XC0
6: XC1
7: XC2


Field Documentation

int timer_capture_opt_t::abetrg

abetrg: External trigger selection. 0: TIOB 1: TIOA

Definition at line 161 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::burst

clock_burst: Specify a burst type for the clock.
0: Use the selected clock
1: XC0 is ANDed with the selected clock
2: XC1 is ANDed with the selected clock
3: XC2 is ANDed with the selected clock

Definition at line 145 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::channel

channel: The timer channel to use. Channel 0, 1 or 2 are valid selections

Definition at line 124 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::clki

clock_invert: Use raising (0) or falling edge (1) of the clock

Definition at line 138 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::cpctrg

cpctrg: Compare trigger enable: 0: disabled 1: RC compare resets counter and starts clock

Definition at line 164 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::etrgedg

etrgedg: External trigger selection.
0: none
1: rising edge
2: falling edge
3: each edge

Definition at line 158 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::ldbdis

ldbdis: To disable (1) or not to disable (0) the counter clock when RB loading occurs

Definition at line 151 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::ldbstop

ldbstop: To stop (1) or not to stop (0) when RB loading occurs

Definition at line 148 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::ldra

ldra: RA Loading selection.
0: none
1: Rising TIOA edge
2: Falling TIOA edge
3: Each TIOA edge

Definition at line 171 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::ldrb

ldrb: RB Loading selection.
0: none
1: Rising TIOB edge
2: Falling TIOB edge
3: Each TIOA edge

Definition at line 178 of file timer.h.

Referenced by init_timer_input().

int timer_capture_opt_t::tcclks

clock_source: The clock source for the timer.
0: Timer Clock 1
1: Timer Clock 2
2: Timer Clock 3
3: Timer Clock 4
4: Timer Clock 5
5: XC0
6: XC1
7: XC2

Definition at line 135 of file timer.h.

Referenced by init_timer_input().


Generated on Fri Oct 13 09:41:18 2006 for AVR32110 Using the AVR32 Timer/Counter by  doxygen 1.4.7