timer16_drv.c File Reference

#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

This file contains the low level functions (drivers) of 16-bit Timer(s) - Compiler: IAR EWAVR and GNU GCC for AVR

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 65 of file timer16_drv.c.

00066 {
00067     U16 u16_temp;
00068     
00069     u16_temp  =  Timer16_get_counter_low();
00070     u16_temp |= (Timer16_get_counter_high() << 8 );
00071     
00072     return u16_temp;
00073 }

U16 timer16_get_capture ( void   ) 

This function READ the 16-bit TIMER capture register.

Warning:
Parameters:
 
Returns:
16-bit capture value

Definition at line 86 of file timer16_drv.c.

00087 {
00088     U16 u16_temp;
00089     
00090     u16_temp  =  Timer16_get_capture_low();
00091     u16_temp |= (Timer16_get_capture_high() << 8 );
00092     
00093     return u16_temp;
00094 }


Generated on Wed Sep 23 09:17:15 2009 for ATMEL by  doxygen 1.5.3