⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 structures.h

📁 Analog 公司 ADE7169 SOC 电表方案DEMO程序
💻 H
字号:
/*
-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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -