state.h

来自「藍芽電話簿範本」· C头文件 代码 · 共 47 行

H
47
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Limited 2006-2009
Part of BlueLab 4.1-Release

DESCRIPTION
    Interface for state management functionality
	
FILE
	state.h
*/


#ifndef APPLICATION_STATE_H
#define APPLICATION_STATE_H


typedef enum
{
	/* Application has not been initialised */
	AppStateUninitialised,
	/* Connection Library has been initialised */
	AppStateConInited,
	/* Application has completed initialisation and is idle */
	AppStateAppIdle,
	/* Attempting to connect to the PBAP Server */
	AppStateAppConnecting,
	/* Connected to the PBAP Server */
	AppStateAppConnected,
	/* Disconnecting from the PBAP Server */
	AppStateAppDisconnecting,
	/* Application is attempting to set the current phonebook */
	AppStateSetPhonebook,
	/* Application is getting the vCard List */
	AppStateGetVCardList,
	/* Application is getting the vCard Entry */
	AppStateGetVCardEntry,
	/* Application is downloading the phonebook */
	AppStateDownloadPhonebook,
	
	AppStateEndOfList
} app_states;


void setState(app_states *pState, app_states pNewState);

#endif /* APPLICATION_STATE_H */

⌨️ 快捷键说明

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