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

📄 mobilerobotics.h

📁 1、手持设备的机器人--服务器端; 2、通过蓝牙通讯;
💻 H
字号:
#ifndef MOBILEROBOTICS_
#define MOBILEROBOTICS_

/*
 * Copyright (c) 2004-2005 Mobile Robotics
 * http://mobilerobotics.sf.net
 *
 * File: MobileRobotics.h
 * Author: Johan Johanson
 * Date: February 02, 2005
 * Updated: April 15, 2005
 *
 * Description: Builds upon BtRFCOMMServer
 * 				Main application class, dependent implementation
 * 				Handles Bluetooth connections and IR management
 *
*/

#include <PalmOS.h>

#include "BtRFCOMMServer.h"
#include "RCXInterface.h"
#include "resource.h"
#include "sections.h"

class MobileRobotics : public BtRFCOMMServer
{
public:
	MobileRobotics() EXT_SEG;
	~MobileRobotics() EXT_SEG;

	Boolean init(Char *serviceName, UInt16 maxNumClients, Boolean advanceCredit);
	void shutdown();

	void debugPrint(Char *str) EXT_SEG;

	UInt16 getRCXBatteryLevel();

public:
	void update();

private:
	Boolean onConnectedInbound(BtLibSocketEventType *event) EXT_SEG;
	Boolean onData(BtLibSocketEventType *event) EXT_SEG;
	Boolean onDisconnected(BtLibSocketEventType *event) EXT_SEG;
	
private:
	RCXInterface rcxInterface;
	
	UInt32 timer;
	Boolean busy;
};

#endif

⌨️ 快捷键说明

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