LibJuno 0.42.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
juno_time.c File Reference
#include "juno/macros.h"
#include "juno/status.h"
#include "juno/time/time_api.h"
#include <stdint.h>
Include dependency graph for juno_time.c:

Functions

JUNO_STATUS_T JunoTime_AddTime (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T *ptRetTime, JUNO_TIMESTAMP_T tTimeToAdd)
 
JUNO_STATUS_T JunoTime_SubtractTime (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T *ptRetTime, JUNO_TIMESTAMP_T tTimeToSubtract)
 
JUNO_TIME_NANOS_RESULT_T JunoTime_TimestampToNanos (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime)
 
JUNO_TIME_MICROS_RESULT_T JunoTime_TimestampToMicros (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime)
 
JUNO_TIME_MILLIS_RESULT_T JunoTime_TimestampToMillis (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTime)
 
JUNO_TIMESTAMP_RESULT_T JunoTime_NanosToTimestamp (JUNO_TIME_T *ptTime, JUNO_TIME_NANOS_T iNanos)
 
JUNO_TIMESTAMP_RESULT_T JunoTime_MicrosToTimestamp (JUNO_TIME_T *ptTime, JUNO_TIME_MICROS_T iMicros)
 
JUNO_TIMESTAMP_RESULT_T JunoTime_MillisToTimestamp (JUNO_TIME_T *ptTime, JUNO_TIME_MILLIS_T iMillis)
 
JUNO_RESULT_F64_T JunoTime_TimestampToDouble (JUNO_TIME_T *ptTime, JUNO_TIMESTAMP_T tTimestamp)
 
JUNO_TIMESTAMP_RESULT_T JunoTime_DoubleToTimestamp (JUNO_TIME_T *ptTime, double dTimestamp)
 

Variables

static const JUNO_TIME_SUBSECONDS_T giSUBSECS_MAX = -1
 

Function Documentation

◆ JunoTime_AddTime()

JUNO_STATUS_T JunoTime_AddTime ( JUNO_TIME_T ptTime,
JUNO_TIMESTAMP_T ptRetTime,
JUNO_TIMESTAMP_T  tTimeToAdd 
)

◆ JunoTime_DoubleToTimestamp()

JUNO_TIMESTAMP_RESULT_T JunoTime_DoubleToTimestamp ( JUNO_TIME_T ptTime,
double  dTimestamp 
)

◆ JunoTime_MicrosToTimestamp()

JUNO_TIMESTAMP_RESULT_T JunoTime_MicrosToTimestamp ( JUNO_TIME_T ptTime,
JUNO_TIME_MICROS_T  iMicros 
)

◆ JunoTime_MillisToTimestamp()

JUNO_TIMESTAMP_RESULT_T JunoTime_MillisToTimestamp ( JUNO_TIME_T ptTime,
JUNO_TIME_MILLIS_T  iMillis 
)

◆ JunoTime_NanosToTimestamp()

JUNO_TIMESTAMP_RESULT_T JunoTime_NanosToTimestamp ( JUNO_TIME_T ptTime,
JUNO_TIME_NANOS_T  iNanos 
)

◆ JunoTime_SubtractTime()

JUNO_STATUS_T JunoTime_SubtractTime ( JUNO_TIME_T ptTime,
JUNO_TIMESTAMP_T ptRetTime,
JUNO_TIMESTAMP_T  tTimeToSubtract 
)

◆ JunoTime_TimestampToDouble()

JUNO_RESULT_F64_T JunoTime_TimestampToDouble ( JUNO_TIME_T ptTime,
JUNO_TIMESTAMP_T  tTimestamp 
)

◆ JunoTime_TimestampToMicros()

JUNO_TIME_MICROS_RESULT_T JunoTime_TimestampToMicros ( JUNO_TIME_T ptTime,
JUNO_TIMESTAMP_T  tTime 
)

◆ JunoTime_TimestampToMillis()

JUNO_TIME_MILLIS_RESULT_T JunoTime_TimestampToMillis ( JUNO_TIME_T ptTime,
JUNO_TIMESTAMP_T  tTime 
)

◆ JunoTime_TimestampToNanos()

JUNO_TIME_NANOS_RESULT_T JunoTime_TimestampToNanos ( JUNO_TIME_T ptTime,
JUNO_TIMESTAMP_T  tTime 
)

Variable Documentation

◆ giSUBSECS_MAX

const JUNO_TIME_SUBSECONDS_T giSUBSECS_MAX = -1
static