HALFRED  0.4.0
Functions
hal_os_caltime.h File Reference

OS calendar time API. More...

Detailed Description

OS calendar time API.

HAL OS calendar time API.

Purpose
HALFRED Hardware Abstraction Layer
Version
Revision
1571
License
$License$
#include <stdint.h>
#include "hal_defs.h"

Go to the source code of this file.

Functions

OSCalTime OSCALTIME_Get (void)
 
HALRESULT OSCALTIME_Set (OSCalTime time)
 
HALRESULT OSCALTIME_Adjust (OSCalTime timeadj)
 
HALRESULT OSCALTIME_ToDateTime (OSCalTime time, uint16_t *year, uint8_t *month, uint8_t *day, uint8_t *hours, uint8_t *minutes, uint8_t *seconds, uint32_t *nanoseconds)
 
HALRESULT OSCALTIME_FromDateTime (uint16_t year, uint8_t month, uint8_t day, uint8_t hours, uint8_t minutes, uint8_t seconds, uint32_t nanoseconds, OSCalTime *time)
 
int64_t OSCALTIME_ToNS (OSCalTime time)
 
OSCalTime OSCALTIME_FromNS (int64_t ns)
 
HALRESULT OSCALTIME_ToString (OSCalTime time, char *str)