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

📄 battery.h

📁 基于无线单片机24e1的组网程序。在无线传感器之类的应用中的成功案例。
💻 H
字号:
//========================================================
//深圳奥特迅电力设备有限公司
//电池监控系统用无线传输模块
//文件名:Battery.h
//描述:
//By:Andylee 2006-6-13
//anssett@163.com
//=========================================================
#include <reg24e1.h>
#include <binary.h>
#include <intrins.h>
#include <stdio.h>
#include <serial.h>
#include <math.h>

#define Ain1Coe 100
#define Ain2Coe 9016 //90.16   1.22*90.16=109.99
typedef unsigned char uchar;
typedef unsigned int uint;

//unsigned int bzinput;			//放大了1000倍的节点校正标准输入=1000*输入标准值*3/13
//unsigned int scinput;			//放大了1000倍的实际采样值(在标准输入的情况下)
#define RF_DATA_LENGTH 	8		//8字节(AIN1、AIN2、TEMP1、TEMP各两个字节)
void fRfInit(void);				//无线子系统初始化函数
//void IO_Init(void);				//端口初始化函数
//void Timer0_Init(void);
unsigned int Chx_jz(unsigned char chindex,unsigned int adcValue);
void SendCh(unsigned char);

⌨️ 快捷键说明

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