aversive_10-03-12/modules/base/time_ext/time_ext.h File Reference

#include <time_ext_config.h>

Go to the source code of this file.

Data Structures

struct  _time_ext

Defines

#define _TIME_EXT_H
#define NANO_PER_US   1000UL
#define NANO_PER_MS   1000000UL
#define NANO_PER_S   1000000000UL
#define TIMER2_PRESCALER_OFF   0
#define TIMER2_PRESCALER_1   1
#define TIMER2_PRESCALER_8   2
#define TIMER2_PRESCALER_32   3
#define TIMER2_PRESCALER_64   4
#define TIMER2_PRESCALER_128   5
#define TIMER2_PRESCALER_256   6
#define TIMER2_PRESCALER_1024   7
#define NANO_PER_QUARTZ_TICK   TIME_EXT_QUARTZ_PERIOD

Typedefs

typedef struct _time_ext time_ext_t

Functions

void time_ext_init (void)
void time_ext_set_prescaler (uint8_t p)
uint8_t time_ext_get_prescaler (void)
uint32_t time_ext_get_s (void)
uint32_t time_ext_get_ns (void)
time_ext_t time_ext_get (void)
void time_ext_set (uint32_t sec, uint32_t nano)


Define Documentation

#define _TIME_EXT_H

Definition at line 24 of file time_ext.h.

#define NANO_PER_MS   1000000UL

Definition at line 39 of file time_ext.h.

#define NANO_PER_QUARTZ_TICK   TIME_EXT_QUARTZ_PERIOD

Definition at line 55 of file time_ext.h.

Referenced by SIG_OVERFLOW2(), and time_ext_get_ns().

#define NANO_PER_S   1000000000UL

Definition at line 40 of file time_ext.h.

Referenced by SIG_OVERFLOW2(), and time_ext_get().

#define NANO_PER_US   1000UL

Definition at line 38 of file time_ext.h.

#define TIMER2_PRESCALER_1   1

Definition at line 45 of file time_ext.h.

#define TIMER2_PRESCALER_1024   7

Definition at line 51 of file time_ext.h.

#define TIMER2_PRESCALER_128   5

Definition at line 49 of file time_ext.h.

#define TIMER2_PRESCALER_256   6

Definition at line 50 of file time_ext.h.

#define TIMER2_PRESCALER_32   3

Definition at line 47 of file time_ext.h.

#define TIMER2_PRESCALER_64   4

Definition at line 48 of file time_ext.h.

#define TIMER2_PRESCALER_8   2

Definition at line 46 of file time_ext.h.

#define TIMER2_PRESCALER_OFF   0

Definition at line 44 of file time_ext.h.


Typedef Documentation

typedef struct _time_ext time_ext_t


Function Documentation

time_ext_t time_ext_get ( void   ) 

Definition at line 297 of file time_ext.c.

References _time_ext::nano, NANO_PER_S, _time_ext::sec, time_ext_get_ns(), and time_ext_get_s().

Referenced by main(), and mylog().

uint32_t time_ext_get_ns ( void   )  [inline]

Definition at line 285 of file time_ext.c.

References _time_ext::nano, NANO_PER_QUARTZ_TICK, and time_ext_get_prescaler().

Referenced by time_ext_get().

uint8_t time_ext_get_prescaler ( void   )  [inline]

Definition at line 232 of file time_ext.c.

Referenced by SIG_OVERFLOW2(), and time_ext_get_ns().

uint32_t time_ext_get_s ( void   )  [inline]

Definition at line 280 of file time_ext.c.

References _time_ext::sec.

Referenced by time_ext_get().

void time_ext_init ( void   ) 

Definition at line 175 of file time_ext.c.

References E_TIME_EXT, _time_ext::nano, NOTICE, and _time_ext::sec.

Referenced by main().

void time_ext_set ( uint32_t  sec,
uint32_t  nano 
) [inline]

Definition at line 314 of file time_ext.c.

References E_TIME_EXT, _time_ext::nano, NOTICE, and _time_ext::sec.

Referenced by main().

void time_ext_set_prescaler ( uint8_t  p  )  [inline]

Definition at line 223 of file time_ext.c.


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6