#include "config.h"
#include "timer16_drv.h"
Include dependency graph for timer16_drv.c:
Go to the source code of this file.
Functions | |
U16 | timer16_get_counter (void) |
This function READ the 16-bit TIMER counter. | |
U16 | timer16_get_capture (void) |
This function READ the 16-bit TIMER capture register. |
Copyright (c) 2006 Atmel.
Use of this program is subject to Atmel's End User License Agreement. Please read file license.txt for copyright notice.
This file can be parsed by Doxygen for automatic documentation generation. This file has been validated with AVRStudio-412462/WinAVR-20060125.
Definition in file timer16_drv.c.
U16 timer16_get_counter | ( | void | ) |
This function READ the 16-bit TIMER counter.
Definition at line 44 of file timer16_drv.c.
References Timer16_get_counter_high, and Timer16_get_counter_low.
00045 { 00046 U16 u16_temp; 00047 00048 u16_temp = Timer16_get_counter_low(); 00049 u16_temp |= (Timer16_get_counter_high() << 8 ); 00050 00051 return u16_temp; 00052 }
U16 timer16_get_capture | ( | void | ) |
This function READ the 16-bit TIMER capture register.
Definition at line 65 of file timer16_drv.c.
References Timer16_get_capture_high, and Timer16_get_capture_low.
00066 { 00067 U16 u16_temp; 00068 00069 u16_temp = Timer16_get_capture_low(); 00070 u16_temp |= (Timer16_get_capture_high() << 8 ); 00071 00072 return u16_temp; 00073 }