📄 hostag_private.h
字号:
#ifndef _HOSTAG_PRIVATE_H
#define _HOSTAG_PRIVATE_H
#include "ag_msg.h"
/* Define the macros for creating host messages */
#define MAKE_PHONE_MSG_WITH_LEN(TYPE,LEN) AG_TO_PHONE_MSG_T *msg = (AG_TO_PHONE_MSG_T *)PanicNull(malloc(sizeof(TYPE##_T)+2+(LEN))); msg->length = sizeof(TYPE##_T)+2+(LEN); msg->type = TYPE;
#define MAKE_PHONE_MSG(TYPE) MAKE_PHONE_MSG_WITH_LEN(TYPE, 0)
/* hostag_main.c - send a message to the off chip driver application over host coms */
void hostAgPutHostMsg(void *msg);
/* hostag_send.c - handle a start_req received over host comms */
void hostAgStartReq(const AG_START_REQ_T *req, uint16 len);
/* hostag_send.c - handle a inquiry_req received over host comms */
void hostAgInquiryReq(const AG_INQUIRY_REQ_T *req);
/* hostag_send.c - handle a pair_req received over host comms */
void hostAgPairReq(const AG_PAIR_REQ_T *req);
/* hostag_send.c - handle a pin_code_res received over host comms */
void hostAgPinRes(const AG_PIN_CODE_RES_T *res);
/* hostag_send.c - handle a link_key_res received over host comms */
void hostAgLinkKeyRes(const AG_LINK_KEY_RES_T *res);
/* hostag_send.c - handle a sm_add_device_req received over host comms */
void hostAgSmAddDeviceReq(const AG_SM_ADD_DEVICE_REQ_T *req);
/* hostag_send.c - handle a connect_as_master_req received over host comms */
void hostAgConnectAsMasterReq(const AG_CONNECT_AS_MASTER_REQ_T *req);
/* hostag_send.c - handle a connect_as_slave_req received over host comms */
void hostAgConnectAsSlaveReq(const AG_CONNECT_AS_SLAVE_REQ_T *req);
/* hostag_send.c - handle a create_sco_req received over host comms */
void hostAgCreateScoReq(const AG_CREATE_SCO_REQ_T *req);
/* hostag_send.c - handle a rfcomm_disconnect_req received over host comms */
void hostAgRfcommDisconnectReq(const AG_RFCOMM_DISCONNECT_REQ_T *req);
/* hostag_send.c - handle a sco_disconnect_req received over host comms */
void hostAgScoDisconnectReq(const AG_SCO_DISCONNECT_REQ_T *req);
/* hostag_send.c - handle a ring_req received over host comms */
void hostAgRingReq(const AG_RING_REQ_T *req);
/* hostag_send.c - handle a volume_change_req received over host comms */
void hostAgVolumeGainReq(const AG_VOLUME_CHANGE_REQ_T *req);
/* hostag_send.c - handle a mic_change_req received over host comms */
void hostAgMicrophoneChangeReq(const AG_MIC_CHANGE_REQ_T *req);
/* hostag_send.c - handle a data_req received over host comms */
void hostAgDataReq(const AG_DATA_REQ_T *req);
/* hostag_send.c - handle a send_call_status_req received over host comms */
void hostAgCallStatusReq(const AG_SEND_CALL_STATUS_REQ_T *req);
/* hostag_send.c - handle a send_call_setup_req received over host comms */
void hostAgCallSetupReq(const AG_SEND_CALL_SETUP_REQ_T *req);
/* hostag_send.c - handle request to send service indication */
void hostAgServiceReqAction(const AG_SEND_SERVICE_STATUS_REQ_T *req);
/* hostag_send.c - handle a cancel_req received over host comms */
void hostAgCancelReq(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -