structures.h
来自「8051试验程序 基础教材」· C头文件 代码 · 共 35 行
H
35 行
/*
-2006/02/17: Petre M.
-this file contains the difinition of all structures used in this project
*/
//the day, month and year are represented with their digits
//Year has only 3 digits because the thousand digit cannot be represented on the display
struct Date_struct {
char Weekday; //it varies between 0 and 6, 0=Sunday, 6=Saturday
char Year;//it varies between 0 and 99
char Day;//it varies between 1 and 31 depending on month
char Month; //it varies between 1 and 12
};
//this is the structure of 24bit values like Irms, Vrms, etc
struct Three_Bytes_struct {
unsigned char L;
unsigned char M;
unsigned char H;
};
//this is the structure of 5 bytes values like Active, Reactive, Apparent Energy etc
struct Five_Bytes_struct {
unsigned char B0;
unsigned char B1;
unsigned char B2;
unsigned char B3;
unsigned char B4;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?