?? oppserver.h
字號:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.6.2-release
FILE NAME
OPPServer.h
DESCRIPTION
Main header file for an OPP Server application.
*/
#ifndef OPPSERVER_H_
#define OPPSERVER_H_
#include <stream.h>
/* Button to shutdown the OPP Server */
#define BUTTON_SHUTDOWN (1<<2)
/* PSKEY to store the maximum packet size */
#define PSKEY_MAX_PACKET 10
/* Default maximum size of packet that this server can support */
#define OPPS_MAX_PACKET_SIZE 255
/* Buffer size to use with vGen to generate the vCard */
#define VGEN_BUFFER_SIZE 40
/* DEBUG Print support */
#ifdef OPPS_SVR_DEBUG
#include <stdio.h>
#define SVR_DEBUG(x) {printf("OPP: "); printf x;}
#else
#define SVR_DEBUG(x)
#endif
#ifdef OPPS_CON_DEBUG
#include <stdio.h>
#define CON_DEBUG(x) {printf("CON: "); printf x;}
#else
#define CON_DEBUG(x)
#endif
#if defined(OPPS_CON_DEBUG) || defined(OPPS_SVR_DEBUG) || defined(OPPS_GEN_DEBUG)
#include <stdio.h>
#define GEN_DEBUG(x) {printf x;}
#else
#define GEN_DEBUG(x)
#endif
typedef struct
{
TaskData OppTask;
OPPS *session;
bool connected;
bool shutdown;
uint16 pktSize;
void *vGenWS; /* vGen Workspace */
uint8 buffer[VGEN_BUFFER_SIZE];
} tOPPState;
typedef struct
{
TaskData ConTask;
} tMainState;
void opp_initTask(tOPPState *state);
#endif /* OPPSERVER_H_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -