timer16_drv.c File Reference

,vThis file contains the low level functions (drivers) of: More...

#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.


Detailed Description

,vThis file contains the low level functions (drivers) of:

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.

Version:
1.2 at90usb162-cdc-1_0_1
Todo:
Bug:

Definition in file timer16_drv.c.


Function Documentation

U16 timer16_get_counter ( void   ) 

This function READ the 16-bit TIMER counter.

Warning:
Parameters:
 
Returns:
16-bit counter value

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.

Warning:
Parameters:
 
Returns:
16-bit capture value

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 }


Generated on Fri Jun 15 14:15:43 2007 for Atmel by  doxygen 1.5.1-p1