Classes | Macros | Functions
d_time.h File Reference
#include <stdint.h>
Include dependency graph for d_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  ticks_t
 

Macros

#define RTPRES   3
 
#define RTPRES_SEC   BOARD_FREQ_SLCK_XTAL
 
#define TIME_MS_PER_TICK_F   (TIME_SECS_PER_TICK_F*1000.0f)
 
#define TIME_MS_PER_TICK_LF   (TIME_SECS_PER_TICK_LF*1000.0)
 
#define TIME_SECS_PER_TICK_F   (((float)RTPRES)/(float)RTPRES_SEC)
 
#define TIME_SECS_PER_TICK_LF   (((double)RTPRES)/(double)RTPRES_SEC)
 
#define TIME_TICKS_PER_MS   (TIME_TICKS_PER_SEC/1000)
 
#define TIME_TICKS_PER_SEC   (RTPRES_SEC/RTPRES)
 
#define TIME_TICKS_PER_US   (TIME_TICKS_PER_SEC/1000000)
 
#define TIME_US_PER_TICK_F   (TIME_SECS_PER_TICK_F*1000000.0f)
 
#define TIME_US_PER_TICK_LF   (TIME_SECS_PER_TICK_LF*1000000.0)
 

Functions

void time_delay (uint32_t ms)
 
void time_init (void)
 
uint32_t time_msec (void)
 
float time_msecf (void)
 
double time_mseclf (void)
 
float time_secf (void)
 
double time_seclf (void)
 
volatile uint64_t time_ticks (void)
 
uint32_t time_usec (void)
 
float time_usecf (void)
 
double time_useclf (void)
 

Macro Definition Documentation

◆ RTPRES

#define RTPRES   3

Definition at line 37 of file d_time.h.

◆ RTPRES_SEC

#define RTPRES_SEC   BOARD_FREQ_SLCK_XTAL

Definition at line 36 of file d_time.h.

◆ TIME_MS_PER_TICK_F

#define TIME_MS_PER_TICK_F   (TIME_SECS_PER_TICK_F*1000.0f)

Definition at line 49 of file d_time.h.

◆ TIME_MS_PER_TICK_LF

#define TIME_MS_PER_TICK_LF   (TIME_SECS_PER_TICK_LF*1000.0)

Definition at line 45 of file d_time.h.

◆ TIME_SECS_PER_TICK_F

#define TIME_SECS_PER_TICK_F   (((float)RTPRES)/(float)RTPRES_SEC)

Definition at line 48 of file d_time.h.

◆ TIME_SECS_PER_TICK_LF

#define TIME_SECS_PER_TICK_LF   (((double)RTPRES)/(double)RTPRES_SEC)

Definition at line 44 of file d_time.h.

◆ TIME_TICKS_PER_MS

#define TIME_TICKS_PER_MS   (TIME_TICKS_PER_SEC/1000)

Definition at line 41 of file d_time.h.

◆ TIME_TICKS_PER_SEC

#define TIME_TICKS_PER_SEC   (RTPRES_SEC/RTPRES)

Definition at line 40 of file d_time.h.

◆ TIME_TICKS_PER_US

#define TIME_TICKS_PER_US   (TIME_TICKS_PER_SEC/1000000)

Definition at line 42 of file d_time.h.

◆ TIME_US_PER_TICK_F

#define TIME_US_PER_TICK_F   (TIME_SECS_PER_TICK_F*1000000.0f)

Definition at line 50 of file d_time.h.

◆ TIME_US_PER_TICK_LF

#define TIME_US_PER_TICK_LF   (TIME_SECS_PER_TICK_LF*1000000.0)

Definition at line 46 of file d_time.h.

Function Documentation

◆ time_delay()

void time_delay ( uint32_t  ms)

Definition at line 84 of file d_time.c.

◆ time_init()

void time_init ( void  )

Definition at line 40 of file d_time.c.

◆ time_msec()

uint32_t time_msec ( void  )
inline

Definition at line 95 of file d_time.c.

◆ time_msecf()

float time_msecf ( void  )
inline

Definition at line 131 of file d_time.c.

◆ time_mseclf()

double time_mseclf ( void  )
inline

Definition at line 149 of file d_time.c.

◆ time_secf()

float time_secf ( void  )
inline

Definition at line 125 of file d_time.c.

◆ time_seclf()

double time_seclf ( void  )
inline

Definition at line 143 of file d_time.c.

◆ time_ticks()

volatile uint64_t time_ticks ( void  )
inline

Definition at line 65 of file d_time.c.

◆ time_usec()

uint32_t time_usec ( void  )
inline

Definition at line 110 of file d_time.c.

◆ time_usecf()

float time_usecf ( void  )
inline

Definition at line 137 of file d_time.c.

◆ time_useclf()

double time_useclf ( void  )
inline

Definition at line 155 of file d_time.c.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05