35 #define BF07_MID_MSGT_XXX_SBX_STEREO_SEL_PARAM_LEN 0x02 // (1 byte for CMD and 1 byte for parameters) 36 #define BF07_MID_MSGT_XXX_SBX_STEREO_SEL_DEF_PARAMS {MID_MSGT_XXX_SBX_STEREO_SEL, 0x7F} // init value for array of parameters, all VOID 38 #define BF07_MID_MSGT_XXX_SBX_STEREO_SEL_RESPONSE_LEN 0x03+0x7F // (1 byte for CMD and 2 bytes for parameters + 128 bytes just in case) 39 #define BF07_MID_MSGT_XXX_SBX_STEREO_SEL_PARAM_LEN_RESP 0x01 // Reading current/init parameters requires only command code to be sent 40 #define BF07_MID_MSGT_XXX_SBX_STEREO_SEL_DEF_PARAMS_RESP {MID_MSGT_XXX_SBX_STEREO_SEL} 43 #define BF07_VU_MIC_VOID 0x3F 44 #define BF07_VU_MIC_MASK 0x03 47 #define BF07_VU_SPK_VOID 0x3F 48 #define BF07_VU_SPK_MASK 0x0C 51 #define BF07_MIC_PREAMP_VOID 0xFF 52 #define BF07_ECHO_ATT_OFFSET_VOID 0xFF 53 #define BF07_MIC_FLAG_SET_INIT 0x80 56 #define BF07_EC_VOID 0x3F 57 #define BF07_EC_MASK 0x70 // also reading bit 6, echo detected? 60 #define INT_FN_MUTE_HF_KEY 0x01 61 #define INT_FN_MUTE_HS_KEY 0x02 62 #define INT_FN_HOOK_KEY 0x03 63 #define INT_FN_HF_OVER_HS_KEY 0x04 66 #define PTT_LED_VOID 0xFF 72 int intFn_BF07_SetMicOnVUState(
TiproHidDevice *device,
int nAddress,
int nState,
bool bSetInit =
false);
73 int intFn_BF07_GetMicOnVUState(
TiproHidDevice *device,
int nAddress,
int *nState,
int *nInitState =
nullptr);
75 int intFn_BF07_SetVUCScenario(
TiproHidDevice *device,
int nAddress,
int nScenario,
bool bSetInit =
false);
76 int intFn_BF07_GetVUCScenario(
TiproHidDevice *device,
int nAddress,
int *nScenario,
int *nInitScenario =
nullptr);
78 int intFn_BF07_SetMicrophoneLevel(
TiproHidDevice *device,
int nAddress,
int nLevel,
int nDevice = BF07_DEVICE_HANDSFREE_HANDSET,
bool bSetInit =
false);
79 int intFn_BF07_GetMicrophoneLevel(
TiproHidDevice *device,
int nAddress,
int *nLevel,
int nDevice = BF07_DEVICE_HANDSFREE,
int *nInitLevel =
nullptr);
81 int intFn_BF07_SetMicrophoneOptimalDistance(
TiproHidDevice *device,
int nAddress,
int nDistance,
int nDevice = BF07_DEVICE_HANDSFREE_HANDSET,
bool bSetInit =
false);
82 int intFn_BF07_GetMicrophoneOptimalDistance(
TiproHidDevice *device,
int nAddress,
int *nDistance,
int nDevice = BF07_DEVICE_HANDSFREE,
int *nInitDistance =
nullptr);
84 int intFn_BF07_SetMicrophoneCompression(
TiproHidDevice *device,
int nAddress,
int nCompression,
int nDevice = BF07_DEVICE_HANDSFREE_HANDSET,
bool bSetInit =
false);
85 int intFn_BF07_GetMicrophoneCompression(
TiproHidDevice *device,
int nAddress,
int *nCompression,
int nDevice = BF07_DEVICE_HANDSFREE,
int *nInitCompression =
nullptr);
87 int intFn_BF07_SetMicrophoneThreshold(
TiproHidDevice *device,
int nAddress,
int nThreshold,
int nDevice = BF07_DEVICE_HANDSFREE_HANDSET,
bool bSetInit =
false);
88 int intFn_BF07_GetMicrophoneThreshold(
TiproHidDevice *device,
int nAddress,
int *nThreshold,
int nDevice = BF07_DEVICE_HANDSFREE,
int *nInitThreshold =
nullptr);
90 int intFn_BF07_SetEcho(
TiproHidDevice *device,
int nAddress,
int nMode,
bool bSetInit =
false);
91 int intFn_BF07_GetEcho(
TiproHidDevice *device,
int nAddress,
int *nMode,
int *nInitMode =
nullptr);
93 int intFn_BF07_SetSidetone(
TiproHidDevice *device,
int nAddress,
bool bOn,
int nLevel = BF07_SIDETONE_ILLEGAL,
bool bSetInit =
false);
94 int intFn_BF07_SetSidetoneLevel(
TiproHidDevice *device,
int nAddress,
int nLevel,
bool bSetInit =
false);
95 int intFn_BF07_GetSidetoneLevel(
TiproHidDevice *device,
int nAddress,
int *nLevel,
int *nInitLevel =
nullptr);
97 int intFn_BF07_TouchDisable(
TiproHidDevice *device,
int nAddress,
bool bDisable=
true);
99 int intFn_BF07_EmulateKey(
TiproHidDevice *device,
int nAddress,
int nKeyFn,
bool bKeyPress=
true);
100 int intFn_BF07_ReleaseEmulatedKeys(
TiproHidDevice *device,
int nAddress);
102 int intFn_BF07_SetPTTLed(
TiproHidDevice *device,
int nAddress,
int nMode,
int nTBlinkA = 0,
int nTBlinkB = 0,
bool bSetInit =
false);
103 int intFn_BF07_GetPTTLed(
TiproHidDevice *device,
int nAddress,
int *nMode,
int *nTBlinkA =
nullptr,
int *nTBlinkB =
nullptr);
106 int intFn_BF07_SetHandsetSpeakerLevel(
TiproHidDevice *device,
int nAddress,
int nLevel,
bool bSetInit =
false);
107 int intFn_BF07_GetHandsetSpeakerLevel(
TiproHidDevice *device,
int nAddress,
int *nLevel,
int *nInitLevel =
nullptr);
108 int intFn_BF07_SetMonoSpeakerMode(
TiproHidDevice *device,
int nAddress,
int nMode,
bool bSetInit =
false);
109 int intFn_BF07_GetMonoSpeakerMode(
TiproHidDevice *device,
int nAddress,
int *nMode,
int *nInitMode =
nullptr);
116 int intFn_BF07_SetLEDMode(
TiproHidDevice *device,
int nAddress,
int nKey,
int nMode);
117 int intFn_BF07_GetLEDMode(
TiproHidDevice *device,
int nAddress,
int nKey,
int *nMode);
119 #define BF07_KEYLED_MODE_OFF 0x00 120 #define BF07_KEYLED_MODE_ON 0x01 121 #define BF07_KEYLED_MODE_BLINK 0x02 122 #define BF07_KEYLED_MODE_BLINK_INV 0x03 125 #define BF07_KEYLED_2_MODE_ON 0x10 126 #define BF07_KEYLED_2_MODE_BLINK 0x20 127 #define BF07_KEYLED_2_MODE_BLINK_INV 0x30 130 int intFn_BF07_SetLEDStateEx(
TiproHidDevice *device,
int nAddress,
int nMask,
int nState,
int nBlink);
131 int intFn_BF07_GetLEDStateEx(
TiproHidDevice *device,
int nAddress,
int *nState,
int *nBlink);
134 #define BF07_KEYLED_01 0x0001 135 #define BF07_KEYLED_02 0x0002 136 #define BF07_KEYLED_03 0x0004 137 #define BF07_KEYLED_04 0x0008 138 #define BF07_KEYLED_05 0x0010 139 #define BF07_KEYLED_06 0x0020 140 #define BF07_KEYLED_PTT 0x0040 142 #define BF07_KEYLED_2_01 0x0100 143 #define BF07_KEYLED_2_02 0x0200 144 #define BF07_KEYLED_2_03 0x0400 145 #define BF07_KEYLED_2_04 0x0800 146 #define BF07_KEYLED_2_05 0x1000 147 #define BF07_KEYLED_2_06 0x2000 150 int intFn_BF07_SetPTTLEDState(
TiproHidDevice *device,
int nAddress,
int nMode);
151 int intFn_BF07_GetPTTLEDState(
TiproHidDevice *device,
int nAddress,
int *nMode);
154 int intFn_HIDSetSbxLEDBlinkSpeed(
TiproHidDevice *device,
int nAddress,
int nTBlinkA,
int nTBlinkB);
155 int intFn_HIDGetSbxLEDBlinkSpeed(
TiproHidDevice *device,
int nAddress,
int *nTBlinkA,
int *nTBlinkB);
158 int intFn_BF07_SetMicLEDMode(
TiproHidDevice *device,
int nAddress,
int nMode);
159 int intFn_BF07_GetMicLEDMode(
TiproHidDevice *device,
int nAddress,
int *nMode);
160 int intFn_BF07_SetHSStatusLEDMode(
TiproHidDevice *device,
int nAddress,
int nMode);
161 int intFn_BF07_GetHSStatusLEDMode(
TiproHidDevice *device,
int nAddress,
int *nMode);
Definition: TiproHidDevice.h:29