?? gpsmain.h
字號:
/*************************************************************************/
/* */
/* Copyright (c) 2000-2004 YULONG Company */
/* 宇龍計算機通信科技(深圳)有限公司 版權所有 2000-2006 */
/* */
/* PROPRIETARY RIGHTS of YULONG Company are involved in the */
/* subject matter of this material. All manufacturing, reproduction, use, */
/* and sales rights pertaining to this subject matter are governed by the */
/* license agreement. The recipient of this software implicitly accepts */
/* the terms of the license. */
/* 本軟件文檔資料是宇龍公司的資產,任何人士閱讀和使用本資料必須獲得 */
/* 相應的書面授權,承擔保密責任和接受相應的法律約束. */
/* */
/*************************************************************************/
#ifndef __BLUETOOTHMAIN_H__
#define __BLUETOOTHMAIN_H__
#include <windows.h>
#include "winioctl.h"
#ifdef __cplusplus
extern "C" {
#endif
//////////////////////////////////////////////////////////////////////////////////
// 下面是型號選擇,兩個宏必須只留一個,出BSP時由版本控制人員選擇
//////////////////////////////////////////////////////////////////////////////////
/*
#define IOCTL_GPS_MESSAGE CTL_CODE(FILE_DEVICE_UNKNOWN, 0x400, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define GPS_POWER_ON 0x1
#define GPS_POWER_OFF 0x2
#define GPS_RESET 0x3
#define GPS_CTL_RETURN_SUCCESS 0x1
#define GPS_CTL_RETURN_FAILURE 0x0
#define GPS_CTL_NOTSUPPORTED_CODE 0x2
#define GPS_CTL_NOTSUPPORTED_METHOD 0x3
*/
#define _MPC_ACCESS_CTL_CODE(_Function) CTL_CODE(FILE_DEVICE_SERIAL_PORT, _Function, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_GPS_POWER_ON _MPC_ACCESS_CTL_CODE(1)
#define IOCTL_GPS_POWER_OFF _MPC_ACCESS_CTL_CODE(2)
#define IOCTL_GPS_RESET _MPC_ACCESS_CTL_CODE(3)
enum RESULT_CODE
{
AllocMemFail=0,
ReturnOK,
PWSOFF,
PWSON
} ;
#ifdef __cplusplus
}
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -