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

📄 vsmain.h

📁 基于Msp430的串口通信程序
💻 H
字号:
/*****************************************************************************
* IAR visualSTATE Main Loop Header File
*
* The file contains an implementation for a main loop using the visualSTATE
* basic API.
*
* The code uses a simple queue for storing events. The functions for inter-
* facing to the queue are described in the sample code file
* simpleEventHandler.h.
*****************************************************************************/


#ifndef _VSMAIN_H
#define _VSMAIN_H

typedef unsigned int word;              // Type definition for 'word'

typedef struct
{  // 温度修正系数,暂时用一点
   unsigned int temp_amend_1;
   unsigned int temp_amend_2;
   // 湿度系数,
   unsigned int humidity_amend;
   // 气压修正系数
   unsigned int air_pressure_amend;
   // 风速当量,及检测到转速(转/分钟)与风速(级)关系
   unsigned int wind_speed_amend[12][2];
   // Flash中修正系数设置标记,等于 0xa5a5时认为已经设置了修正系数
   unsigned int flash_amend_flag;

}SETUP;
// 气象参数采样值
typedef struct
{
   unsigned int temp;
   unsigned int humidity;
   unsigned int air_pressure;
   unsigned int wind_speed;
}WH_SAMPLE;
/* *** function declarations *** */

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -