Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
Loading...
Searching...
No Matches
datetime.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021-present dogtopus
3
* SPDX-License-Identifier: MIT
4
*/
5
10
11
#ifndef __MUTEKI_DATETIME_H__
12
#define __MUTEKI_DATETIME_H__
13
14
#include "
common.h
"
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
23
typedef
struct
{
25
short
year
;
27
short
month
;
29
short
weekday
;
31
short
day
;
33
short
hour
;
35
short
minute
;
37
short
second
;
39
short
millis
;
40
}
bxc_datetime_t
;
41
47
extern
void
GetSysTime
(
bxc_datetime_t
*dt);
48
49
#ifdef __cplusplus
50
}
// extern "C"
51
#endif
52
53
#endif
// __MUTEKI_DATETIME_H__
common.h
Common include file for all muteki-shims headers.
GetSysTime
void GetSysTime(bxc_datetime_t *dt)
Read current time of the day and store it in dt.
bxc_datetime_t
The datetime struct used by GetSysTime() and SetSysTime().
Definition
datetime.h:23
bxc_datetime_t::hour
short hour
Definition
datetime.h:33
bxc_datetime_t::second
short second
Definition
datetime.h:37
bxc_datetime_t::day
short day
Definition
datetime.h:31
bxc_datetime_t::month
short month
Definition
datetime.h:27
bxc_datetime_t::year
short year
Definition
datetime.h:25
bxc_datetime_t::millis
short millis
Definition
datetime.h:39
bxc_datetime_t::minute
short minute
Definition
datetime.h:35
bxc_datetime_t::weekday
short weekday
Definition
datetime.h:29
include
muteki
datetime.h
Generated by
1.18.0