AVR XMEGA timer/counter Timer. More...
#include <timer.h>#include <stdbool.h>#include <stdint.h>Go to the source code of this file.
Functions | |
| void | tc_timer_init (uint8_t tc_id, void *regs, struct timer *timer, timer_callback_t timer_callback) |
| Common initialization for timers. | |
| void | tc_timer_start (uint8_t tc_id, struct timer *timer) |
| Enable, reset and start TC. | |
| void | tc_timer_stop (uint8_t tc_id, struct timer *timer) |
| Stop and disable TC. | |
| void | tc_timer_set_alarm (uint8_t tc_id, struct timer *timer, uint16_t delay) |
| Configure new alarm on TC. | |
| uint16_t | tc_timer_get_time (uint8_t tc_id, struct timer *timer) |
| Get current time of TC. | |
| timer_res_t | tc_timer_set_resolution (uint8_t tc_id, uint32_t resolution) |
| Get best TC clock selection for specified resolution. | |
| void | tc_timer_write_resolution (uint8_t tc_id, struct timer *timer, timer_res_t resolution) |
| Update clock selection for TC. | |
| uint32_t | tc_timer_get_resolution (uint8_t tc_id, timer_res_t timer_res) |
| Get resolution in Hz for TC clock selection. | |
| static uint16_t | tc_timer_maximum_delta (void) |
| Returns the maximum delta for timers. | |
| static timer_res_t | tc_timer_read_resolution (struct timer *timer) |
| Read the currect clock selection of a timer. | |
AVR XMEGA timer/counter Timer.
This file contains function prototypes and inline definitions for the AVR XMEGA timer/counter implementation of the Timer driver.
Do not include this file directly. Include <timer.h> instead.
Copyright (c) 2010 Atmel Corporation. All rights reserved.
Definition in file tc_timer_xmega.h.
1.6.3