MtFmt 1.0.0
MtFmt is a format library on embed. system and wrote by pure C.
载入中...
搜索中...
未找到
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
26typedef uint8_t byte_t;
27
32typedef size_t usize_t, uptr_t;
33
39typedef intptr_t isize_t, iptr_t;
40
45typedef float float32_t;
46
51typedef double float64_t;
52
57typedef bool mstr_bool_t;
58enum
59{
60 True = true,
61 False = false,
62};
63
68typedef char mstr_char_t;
69
74typedef uint32_t mstr_codepoint_t;
75
80typedef 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;
106#endif // __INCLUDE_MM_TYPE_H__
配置选项
uint8_t byte_t
字节(无符号)
Definition mm_type.h:26
intptr_t isize_t
尺寸(有符号, sizeof(isize_t) == sizeof(usize_t) == sizeof(iptr_t))
Definition mm_type.h:39
uint32_t mstr_codepoint_t
unicode代码点
Definition mm_type.h:74
float float32_t
32位浮点值
Definition mm_type.h:45
struct tagMStrTime MStrTime
RTC时间
char mstr_char_t
字符
Definition mm_type.h:68
bool mstr_bool_t
布尔值
Definition mm_type.h:57
intptr_t iptr_t
Definition mm_type.h:39
@ True
Definition mm_type.h:60
@ False
Definition mm_type.h:61
size_t uptr_t
Definition mm_type.h:32
double float64_t
64位浮点值
Definition mm_type.h:51
size_t usize_t
尺寸(无符号)
Definition mm_type.h:32
RTC时间
Definition mm_type.h:81
uint8_t month
(BCD) 月
Definition mm_type.h:86
uint8_t day
(BCD) 日
Definition mm_type.h:89
uint8_t week
(BCD) 星期
Definition mm_type.h:101
uint8_t hour
(BCD) 时
Definition mm_type.h:92
uint32_t sub_second
(BCD) 亚秒值, 单位: x0.1ms
Definition mm_type.h:104
uint16_t year
(BCD) 年份
Definition mm_type.h:83
uint8_t second
(BCD) 秒
Definition mm_type.h:98
uint8_t minute
(BCD) 分
Definition mm_type.h:95