icm30.cpp

来自「串口通信,R232.使用VC++ 编写.非常难得。欢迎大家传播下载」· C++ 代码 · 共 39 行

CPP
39
字号
// ICM30.cpp: implementation of the ICM30 class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ComPortR.h"
#include "ICM30.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CICM30::CICM30()
{
	SendDataNumber = 8;
	ReadDataNumber = 8;

	SendData[0] = 0x03;
	SendData[1] = 0xdd;
	SendData[2] = 0x01;
	SendData[3] = 0x01;
	SendData[4] = 0X41;
	SendData[5] = 0X00;
	SendData[6] = 0X00;
	SendData[7] = 0X16;
}

CICM30::~CICM30()
{

}

⌨️ 快捷键说明

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