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

📄 hosthf_private.h

📁 蓝牙HANDFREE软件源代码
💻 H
字号:
#ifndef _HOSTHF_PRIVATE_H
#define _HOSTHF_PRIVATE_H

#include <csrtypes.h>
#include "hf_msg.h"

#include <hshf_lib.h>
#include <panic.h>
#include <stdlib.h>



/* Set the hands free app version number */
#define HF_VERSION  1



/* Macros used when sending messages to an external GUI */
#define MAKE_GUI_MSG_WITH_LEN(TYPE,LEN) HF_TO_GUI_MSG_T *msg = (HF_TO_GUI_MSG_T *)PanicNull(malloc(sizeof(TYPE##_T)+2+(LEN))); msg->length = sizeof(TYPE##_T)+2+(LEN); msg->type = TYPE;

#define MAKE_GUI_MSG(TYPE) MAKE_GUI_MSG_WITH_LEN(TYPE, 0)


/* hosthf_main.c - send a message over host comms to the GUI */
void hostHfPutGuiMsg(void *msg);

/* hosthf_send.c - dial the supplied number request */
void hostHfDialNumberReq(const DIAL_NUMBER_REQ_T *req);

/* hosthf_send.c - dial the supplied memory location request */
void hostHfDialMemoryReq(const DIAL_MEMORY_REQ_T *req);


#endif

⌨️ 快捷键说明

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