MtFmt
1.0.0
MtFmt is a format library on embed. system and wrote by pure C.
载入中...
搜索中...
未找到
inc
mm_type.h
浏览该文件的文档.
1
// SPDX-License-Identifier: LGPL-3.0
14
#if !defined(__INCLUDE_MM_TYPE_H__)
15
#define __INCLUDE_MM_TYPE_H__ 1
16
#include "
mm_cfg.h
"
17
#include <stdarg.h>
18
#include <stdbool.h>
19
#include <stddef.h>
20
#include <stdint.h>
21
26
typedef
uint8_t
byte_t
;
27
32
typedef
size_t
usize_t
,
uptr_t
;
33
39
typedef
intptr_t
isize_t
,
iptr_t
;
40
45
typedef
float
float32_t
;
46
51
typedef
double
float64_t
;
52
57
typedef
bool
mstr_bool_t
;
58
enum
59
{
60
True
=
true
,
61
False
=
false
,
62
};
63
68
typedef
char
mstr_char_t
;
69
74
typedef
uint32_t
mstr_codepoint_t
;
75
80
typedef
struct
tagMStrTime
81
{
83
uint16_t
year
;
84
86
uint8_t
month
;
87
89
uint8_t
day
;
90
92
uint8_t
hour
;
93
95
uint8_t
minute
;
96
98
uint8_t
second
;
99
101
uint8_t
week
;
102
104
uint32_t
sub_second
;
105
}
MStrTime
;
106
#endif
// __INCLUDE_MM_TYPE_H__
mm_cfg.h
配置选项
byte_t
uint8_t byte_t
字节(无符号)
Definition
mm_type.h:26
isize_t
intptr_t isize_t
尺寸(有符号, sizeof(isize_t) == sizeof(usize_t) == sizeof(iptr_t))
Definition
mm_type.h:39
mstr_codepoint_t
uint32_t mstr_codepoint_t
unicode代码点
Definition
mm_type.h:74
float32_t
float float32_t
32位浮点值
Definition
mm_type.h:45
MStrTime
struct tagMStrTime MStrTime
RTC时间
mstr_char_t
char mstr_char_t
字符
Definition
mm_type.h:68
mstr_bool_t
bool mstr_bool_t
布尔值
Definition
mm_type.h:57
iptr_t
intptr_t iptr_t
Definition
mm_type.h:39
True
@ True
Definition
mm_type.h:60
False
@ False
Definition
mm_type.h:61
uptr_t
size_t uptr_t
Definition
mm_type.h:32
float64_t
double float64_t
64位浮点值
Definition
mm_type.h:51
usize_t
size_t usize_t
尺寸(无符号)
Definition
mm_type.h:32
tagMStrTime
RTC时间
Definition
mm_type.h:81
tagMStrTime::month
uint8_t month
(BCD) 月
Definition
mm_type.h:86
tagMStrTime::day
uint8_t day
(BCD) 日
Definition
mm_type.h:89
tagMStrTime::week
uint8_t week
(BCD) 星期
Definition
mm_type.h:101
tagMStrTime::hour
uint8_t hour
(BCD) 时
Definition
mm_type.h:92
tagMStrTime::sub_second
uint32_t sub_second
(BCD) 亚秒值, 单位: x0.1ms
Definition
mm_type.h:104
tagMStrTime::year
uint16_t year
(BCD) 年份
Definition
mm_type.h:83
tagMStrTime::second
uint8_t second
(BCD) 秒
Definition
mm_type.h:98
tagMStrTime::minute
uint8_t minute
(BCD) 分
Definition
mm_type.h:95