ag_parse.h

来自「bluetooth audio gateway」· C头文件 代码 · 共 112 行

H
112
字号
/*
    Warning - this file was autogenerated by genparse
    DO NOT EDIT - any changes will be lost
*/

#ifndef AG_PARSE_H
#define AG_PARSE_H

#include <ccltypes.h>
#include <bluetooth.h>
#ifdef __XAP__
#include <source.h>
#endif

const uint8 *parseData(const uint8 *s, const uint8 *e, const BD_ADDR_T *addr);
void handleUnrecognised(const uint8 *data, uint16 length, const BD_ADDR_T *addr);

#ifdef __XAP__
uint16 parseSource(Source rfcDataIncoming, const BD_ADDR_T *addr);
#endif

struct sequence
{
  const uint8 *data;
  uint16 length;
};

struct MicrophoneGain
{
  uint16 gain;
};
struct SpeakerGain
{
  uint16 gain;
};
struct ButtonPress
{
  uint16 button;
};
struct CustomButtonPress
{
  struct sequence button;
};
struct IndicatorReportActivation
{
  uint16 disp;
  uint16 ind;
  uint16 keyp;
  uint16 mode;
};
struct RemoteNumberDial
{
  struct sequence number;
};
struct RemoteMemoryDial
{
  struct sequence memory;
};
struct CallWaitingEnable
{
  uint16 status;
};
struct CallHoldRequest
{
  uint16 hold;
};
struct CallerIdActivation
{
  uint16 enable;
};
struct EchoCancellingDisable
{
  uint16 enable;
};
struct VoiceRecognitionEnable
{
  uint16 enable;
};
struct SpecificDataRequest
{
  uint16 request;
};
struct DTMFGeneration
{
  struct sequence code;
};
void handleMicrophoneGain(const BD_ADDR_T *, const struct MicrophoneGain *);
void handleSpeakerGain(const BD_ADDR_T *, const struct SpeakerGain *);
void handleButtonPress(const BD_ADDR_T *, const struct ButtonPress *);
void handleCustomButtonPress(const BD_ADDR_T *, const struct CustomButtonPress *);
void handleIndicatorDescriptionRequest(const BD_ADDR_T *);
void handleIndicatorStatusRequest(const BD_ADDR_T *);
void handleIndicatorReportActivation(const BD_ADDR_T *, const struct IndicatorReportActivation *);
void handleCallAnswer(const BD_ADDR_T *);
void handleCallHangUp(const BD_ADDR_T *);
void handleRemoteNumberDial(const BD_ADDR_T *, const struct RemoteNumberDial *);
void handleRemoteMemoryDial(const BD_ADDR_T *, const struct RemoteMemoryDial *);
void handleLastNumberRedial(const BD_ADDR_T *);
void handleCallWaitingEnable(const BD_ADDR_T *, const struct CallWaitingEnable *);
void handleCallHoldRequest(const BD_ADDR_T *, const struct CallHoldRequest *);
void handleCallHoldTestCmd(const BD_ADDR_T *);
void handleCallerIdActivation(const BD_ADDR_T *, const struct CallerIdActivation *);
void handleEchoCancellingDisable(const BD_ADDR_T *, const struct EchoCancellingDisable *);
void handleVoiceRecognitionEnable(const BD_ADDR_T *, const struct VoiceRecognitionEnable *);
void handleSpecificDataRequest(const BD_ADDR_T *, const struct SpecificDataRequest *);
void handleDTMFGeneration(const BD_ADDR_T *, const struct DTMFGeneration *);
void handleOK(const BD_ADDR_T *);
void handleError(const BD_ADDR_T *);
void handleRing(const BD_ADDR_T *);

#endif

⌨️ 快捷键说明

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