timer_waveform_opt_t Struct Reference

#include <timer.h>


Detailed Description

Parameters when initializing a timer in waveform mode

Definition at line 185 of file timer.h.

Data Fields

int acpa:2
 acpa: RA Compare effect on TIOA.
0: None
1: Set
2: Clear
3: Toggle
int acpc:2
 acpc: RC Compare effect on TIOA.
0: None
1: Set
2: Clear
3: Toggle
int aeevt:2
 aeevt: External Event e ffect on TIOA.
0: None
1: Set
2: Clear
3: Toggle
int aswtrg:2
 aswtrg: Sofware Trigger effect on TIOA.
0: None
1: Set
2: Clear
3: Toggle
int bcpb:2
 bcpb: RB Compare effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle
int bcpc:2
 bcpc: RC Compare effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle
int beevt:2
 beevt: External Event effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle
int bswtrg:2
 bswtrg: Software Trigger effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle
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 # to use, 0 through 2 is valid
int clki:1
 clock_invert: Use rising (0) or falling (1) edge of the clock
int cpcdis:1
 cpcdis: Counter Clock disabled with RC compare if set, not disabled if cleared
int cpcstop:1
 cpcstop: Counter Clock stopped with RC compare if set, not stopped if cleared
int eevt:2
 eevt: External Event Selection.
0: TIOB
1: XC0
2: XC1
3:XC2
int eevtedg:1
 eevtedg: External Event Edge Selection.
0: None
1: Rising edge
2: Falling edge
3: Each edge
int enetrg:1
 enetrg: External Event Trigger Enable, set to reset counter and counter clock.
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
int wavsel:2
 wavsel: Waveform Selection.
0: Up mode without RC trigger.
1: Up mode with RC trigger.
2: Up/down mode without RC trigger.
3: Up/down mode with RC trigger.


Field Documentation

int timer_waveform_opt_t::acpa

acpa: RA Compare effect on TIOA.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 246 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::acpc

acpc: RC Compare effect on TIOA.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 253 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::aeevt

aeevt: External Event e ffect on TIOA.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 260 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::aswtrg

aswtrg: Sofware Trigger effect on TIOA.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 267 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::bcpb

bcpb: RB Compare effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 274 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::bcpc

bcpc: RC Compare effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 281 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::beevt

beevt: External Event effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 288 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::bswtrg

bswtrg: Software Trigger effect on TIOB.
0: None
1: Set
2: Clear
3: Toggle

Definition at line 295 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_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 209 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::channel

channel: The timer # to use, 0 through 2 is valid

Definition at line 188 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::clki

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

Definition at line 202 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::cpcdis

cpcdis: Counter Clock disabled with RC compare if set, not disabled if cleared

Definition at line 215 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::cpcstop

cpcstop: Counter Clock stopped with RC compare if set, not stopped if cleared

Definition at line 212 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::eevt

eevt: External Event Selection.
0: TIOB
1: XC0
2: XC1
3:XC2

Definition at line 229 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::eevtedg

eevtedg: External Event Edge Selection.
0: None
1: Rising edge
2: Falling edge
3: Each edge

Definition at line 222 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::enetrg

enetrg: External Event Trigger Enable, set to reset counter and counter clock.

Definition at line 232 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_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 199 of file timer.h.

Referenced by init_timer_output(), and timer_delay().

int timer_waveform_opt_t::wavsel

wavsel: Waveform Selection.
0: Up mode without RC trigger.
1: Up mode with RC trigger.
2: Up/down mode without RC trigger.
3: Up/down mode with RC trigger.

Definition at line 239 of file timer.h.

Referenced by init_timer_output(), and timer_delay().


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