motintl.h

来自「用于传感器网络的节点操作系统 TinyOS 结构设计非常有意思」· C头文件 代码 · 共 46 行

H
46
字号
/* 	MotIntl.h		Motorola and Intel Uploading/Downloading Routines	Uros Platise (c) 1999*/#ifndef __MOTINTL#define __MOTINTL#include <stdio.h>#include "Global.h"#define MI_LINEBUF_SIZE	128class TMotIntl{public:  enum TFormatType{TF_MOTOROLA, TF_INTEL};private:  char line_buf [MI_LINEBUF_SIZE];  unsigned char cc_sum;  unsigned int hash_marker;  FILE* fd;  bool upload, verify;  TByte Htoi(const char* p);  void InfoOperation(const char* prefix, const char* seg_name);  void ReportStats(float, TAddr);  void UploadMotorola();  void UploadIntel();  void SrecWrite(unsigned int, const unsigned char *, unsigned int);  void DownloadMotorola();public:  void Read(const char* filename, bool _upload, bool _verify);  void Write(const char *filename);  TMotIntl();  ~TMotIntl(){}};extern TMotIntl motintl;#endif

⌨️ 快捷键说明

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