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.1 at90usb128-otg-dual_role-toggle-1_0_0
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 43 of file timer16_drv.c.

References Timer16_get_counter_high, and Timer16_get_counter_low.

00044 {
00045     U16 u16_temp;
00046     
00047     u16_temp  =  Timer16_get_counter_low();
00048     u16_temp |= (Timer16_get_counter_high() << 8 );
00049     
00050     return u16_temp;
00051 }

U16 timer16_get_capture ( void   ) 

This function READ the 16-bit TIMER capture register.

Warning:
Parameters:
 
Returns:
16-bit capture value

Definition at line 64 of file timer16_drv.c.

References Timer16_get_capture_high, and Timer16_get_capture_low.

00065 {
00066     U16 u16_temp;
00067     
00068     u16_temp  =  Timer16_get_capture_low();
00069     u16_temp |= (Timer16_get_capture_high() << 8 );
00070     
00071     return u16_temp;
00072 }


Generated on Mon Feb 19 09:31:55 2007 for Atmel by  doxygen 1.5.1-p1