147 #define BF20_PCM_SCENARIO_AB 0x3C 148 #define BF20_PCM_SCENARIO_LR 0x3D 149 #define BF20_PCM_SCENARIO_VOID 0x3F 150 #define BF20_PCM_SCENARIO_MASK 0x03 152 #define BF20_MICAMP_MODE_LOG 0x33 153 #define BF20_MICAMP_MODE_LIN 0x37 154 #define BF20_MICAMP_MODE_VOID 0x3F 155 #define BF20_MICAMP_MODE_MASK 0x0C 157 #define BF20_VOL_CTRL_LR 0x0F 158 #define BF20_VOL_CTRL_MONO_R 0x1F 159 #define BF20_VOL_CTRL_VOID 0x3F 160 #define BF20_VOL_CTRL_MASK 0x30 162 #define BF20_LF_SPK_OFF 0x3C 163 #define BF20_LF_SPK_ON 0x3D 164 #define BF20_LF_SPK_VOID 0x3F 165 #define BF20_LF_SPK_MASK 0x03 167 #define BF20_VU_AB_MIC_OFF 0x33 168 #define BF20_VU_AB_MIC_ON 0x37 169 #define BF20_VU_AB_MIC_VOID 0x3F 170 #define BF20_VU_AB_MIC_MASK 0x0C 172 #define BF20_VU_C_LF_SPK 0x0F 173 #define BF20_VU_C_PCM_IN 0x1F 174 #define BF20_VU_C_VOID 0x3F 175 #define BF20_VU_C_MASK 0x30 178 #define BF20_LF_SPK_F0_68Hz 0x00 179 #define BF20_LF_SPK_F0_85Hz 0x01 180 #define BF20_LF_SPK_F0_107Hz 0x02 181 #define BF20_LF_SPK_F0_135Hz 0x03 182 #define BF20_LF_SPK_F0_170Hz 0x04 183 #define BF20_LF_SPK_F0_217Hz 0x05 184 #define BF20_LF_SPK_F0_271Hz 0x06 185 #define BF20_LF_SPK_F0_333Hz 0x07 186 #define BF20_LF_SPK_F0_433Hz 0x08 187 #define BF20_LF_SPK_F0_542Hz 0x09 188 #define BF20_LF_SPK_F0_667Hz 0x0A 189 #define BF20_LF_SPK_F0_VOID 0x7F 191 #define BF20_LF_SPK_F0_MIN BF20_LF_SPK_F0_68Hz 192 #define BF20_LF_SPK_F0_MAX BF20_LF_SPK_F0_667Hz 195 #define BF20_LF_SPK_GAIN_m15dB 0x00 196 #define BF20_LF_SPK_GAIN_m12dB 0x01 197 #define BF20_LF_SPK_GAIN_m9dB 0x02 198 #define BF20_LF_SPK_GAIN_m6dB 0x03 199 #define BF20_LF_SPK_GAIN_m3dB 0x04 200 #define BF20_LF_SPK_GAIN_0dB 0x05 201 #define BF20_LF_SPK_GAIN_p3dB 0x06 202 #define BF20_LF_SPK_GAIN_p6dB 0x07 203 #define BF20_LF_SPK_GAIN_p9dB 0x08 204 #define BF20_LF_SPK_GAIN_p12dB 0x09 205 #define BF20_LF_SPK_GAIN_p15dB 0x0A 206 #define BF20_LF_SPK_GAIN_VOID 0x7F 208 #define BF20_LF_SPK_GAIN_MIN BF20_LF_SPK_GAIN_m15dB 209 #define BF20_LF_SPK_GAIN_MAX BF20_LF_SPK_GAIN_p15dB 264 #define BF20_LINE_OUT_OFF_SPK 0x10 265 #define BF20_LINE_OUT_ON_L_SPK 0x11 266 #define BF20_LINE_OUT_ON_R_SPK 0x12 267 #define BF20_LINE_OUT_ON_LR_SPK 0x13 268 #define BF20_LINE_OUT_VOID 0x14 269 #define BF20_LINE_OUT_MASK 0x03 271 #define BF20_MIC_OFF_LINE_IN 0x04 272 #define BF20_MIC_ON_LINE_IN 0x0C 273 #define BF20_MIC_LINE_IN_VOID 0x14 274 #define BF20_MIC_LINE_IN_MASK 0x08 276 #define BF20_EC_OFF 0x00 277 #define BF20_EC_ON_L 0x01 278 #define BF20_EC_ON_R 0x02 279 #define BF20_EC_ON_LR 0x03 280 #define BF20_EC_VOID 0x07 281 #define BF20_EC_MASK 0x03 322 #define BF20_LINE_OUT_OFF_SPK 0x00 323 #define BF20_LINE_OUT_ON_LR_SPK 0x01 324 #define BF20_LINE_OUT_ON_L_SPK 0x02 325 #define BF20_LINE_OUT_ON_R_SPK 0x03 327 #define BF20_MIC_OFF_LINE_IN 0x00 328 #define BF20_MIC_ON_LINE_IN 0x01 330 #define BF20_EC_OFF 0x08 331 #define BF20_EC_ON_L 0x18 332 #define BF20_EC_ON_R 0x28 333 #define BF20_EC_ON_LR 0x38 347 #define MID_MSGT_XXX_SBX_HFREE_MIC_BUF_GAIN 0x0F 383 #define MID_MSGT_XXX_SBX_STEREO_SEL 0x06 // command code 384 #define MID_MSGT_XXX_SBX_STEREO_SEL_PARAM_LEN 0x05 // (1 byte for CMD and 4 bytes for parameters) 385 #define MID_MSGT_XXX_SBX_STEREO_SEL_DEF_PARAMS {MID_MSGT_XXX_SBX_STEREO_SEL, 0x7F, 0x7F, 0x7F, 0x7F} // init value for array of parameters, all VOID 387 #define MID_MSGT_XXX_SBX_STEREO_SEL_RESPONSE_LEN 0x09+0x7F // (1 byte for CMD and 8 bytes for parameters + 128 bytes just in case) 388 #define MID_MSGT_XXX_SBX_STEREO_SEL_PARAM_LEN_RESP 0x01 // Reading current/init parameters requires only command code to be sent 389 #define MID_MSGT_XXX_SBX_STEREO_SEL_DEF_PARAMS_RESP {MID_MSGT_XXX_SBX_STEREO_SEL} 391 int intFn_BF20_SetPCMScenario(
TiproHidDevice *device,
int nAddress,
int nScenario,
bool bSetInit =
false);
392 int intFn_BF20_GetPCMScenario(
TiproHidDevice *device,
int nAddress,
int *nScenario,
int *nInitScenario =
nullptr);
394 int intFn_BF20_SetMicAmpMode(
TiproHidDevice *device,
int nAddress,
int nMicAmpMode,
bool bSetInit =
false);
395 int intFn_BF20_GetMicAmpMode(
TiproHidDevice *device,
int nAddress,
int *nMicAmpMode,
int *nInitMicAmpMode =
nullptr);
397 int intFn_BF20_SetVolCtrl(
TiproHidDevice *device,
int nAddress,
int nVolCtrl,
bool bSetInit =
false);
398 int intFn_BF20_GetVolCtrl(
TiproHidDevice *device,
int nAddress,
int *nVolCtrl,
int *nInitVolCtrl =
nullptr);
401 int intFn_BF20_SetLFSpeakerState(
TiproHidDevice *device,
int nAddress,
int nState,
bool bSetInit =
false);
402 int intFn_BF20_GetLFSpeakerState(
TiproHidDevice *device,
int nAddress,
int *nState,
int *nInitState =
nullptr);
404 int intFn_BF20_SetMicOnVUState(
TiproHidDevice *device,
int nAddress,
int nState,
bool bSetInit =
false);
405 int intFn_BF20_GetMicOnVUState(
TiproHidDevice *device,
int nAddress,
int *nState,
int *nInitState =
nullptr);
407 int intFn_BF20_SetVUCScenario(
TiproHidDevice *device,
int nAddress,
int nScenario,
bool bSetInit =
false);
408 int intFn_BF20_GetVUCScenario(
TiproHidDevice *device,
int nAddress,
int *nScenario,
int *nInitScenario =
nullptr);
411 int intFn_BF20_SetLFSpkFreqResponse(
TiproHidDevice *device,
int nAddress,
int nFreqResponse,
bool bSetInit =
false);
412 int intFn_BF20_GetLFSpkFreqResponse(
TiproHidDevice *device,
int nAddress,
int *nFreqResponse,
int *nInitFreqResponse =
nullptr);
415 int intFn_BF20_SetLFSpkGain(
TiproHidDevice *device,
int nAddress,
int nGain,
bool bSetInit =
false);
416 int intFn_BF20_GetLFSpkGain(
TiproHidDevice *device,
int nAddress,
int *nGain,
int *nInitGain =
nullptr);
419 int intFn_BF20_GetStereoSelByte1Init(
TiproHidDevice *device,
int nAddress,
int *nInitValue);
420 int intFn_BF20_GetStereoSelByte2Init(
TiproHidDevice *device,
int nAddress,
int *nInitValue);
423 #define MID_MSGT_XXX_SBX_MB_LINE_OUT 0x12 // command code 424 #define MID_MSGT_XXX_SBX_MB_LINE_OUT_PARAM_LEN 0x03 // (1 byte for CMD and 2 bytes for parameter) 425 #define MID_MSGT_XXX_SBX_MB_LINE_OUT_DEF_PARAMS {MID_MSGT_XXX_SBX_MB_LINE_OUT, 0x14, 0x07 } // init value for array of parameters, all VOID 427 #define MID_MSGT_XXX_SBX_MB_LINE_OUT_RESPONSE_LEN 0x05+0x7F // (1 byte for CMD and 2 bytes for parameters + 128 bytes just in case) 428 #define MID_MSGT_XXX_SBX_MB_LINE_OUT_PARAM_LEN_RESP 0x01 // Reading current/init parameters requires only command code to be sent 429 #define MID_MSGT_XXX_SBX_MB_LINE_OUT_DEF_PARAMS_RESP {MID_MSGT_XXX_SBX_MB_LINE_OUT} 433 int intFn_BF20_SetMic2LineInState(
TiproHidDevice *device,
int nAddress,
int nState,
bool bSetInit =
false);
434 int intFn_BF20_GetMic2LineInState(
TiproHidDevice *device,
int nAddress,
int *nState,
int *nInitState =
nullptr);
436 int intFn_BF20_SetLineOut2SpkMode(
TiproHidDevice *device,
int nAddress,
int nMode,
bool bSetInit =
false);
437 int intFn_BF20_GetLineOut2SpkMode(
TiproHidDevice *device,
int nAddress,
int *nMode,
int *nInitMode =
nullptr);
440 int intFn_BF20_SetEchoMode(
TiproHidDevice *device,
int nAddress,
int nMode,
bool bSetInit =
false);
441 int intFn_BF20_GetEchoMode(
TiproHidDevice *device,
int nAddress,
int *nMode,
int *nInitMode =
nullptr);
444 int intFn_BF20_ShowOnVUMeter(
TiproHidDevice *device,
int nAddress,
int VUMLeft,
int VUMRight);
445 int intFn_BF20_ShowOnVUMeter(
TiproHidDevice *device,
int nAddress,
int VUMBoth);
454 #define BF20_MIC_FLAG_SET_INIT 0x80 455 #define BF20_MIC_HANDSFREE_DEVICE 0x01 456 #define BF20_MIC_PARAM_LEN_RESP 0x01 // Reading current/init parameters requires only command code to be sent 457 #define BF20_MIC_RESPONSE_LEN 0x07 458 #define BF20_MIC_DISTANCE_FLAG_EC_ENABLED 0x40 459 #define BF20_MIC_DISTANCE_MASK 0x3F // 462 #define BF20_MIC_LEVEL_P3 0x10 463 #define BF20_MIC_LEVEL_P2 0x11 464 #define BF20_MIC_LEVEL_P1 0x12 465 #define BF20_MIC_LEVEL_0 0x13 466 #define BF20_MIC_LEVEL_M1 0x14 467 #define BF20_MIC_LEVEL_M2 0x15 468 #define BF20_MIC_LEVEL_M3 0x16 469 #define BF20_MIC_LEVEL_M4 0x17 470 #define BF20_MIC_LEVEL_M5 0x18 471 #define BF20_MIC_LEVEL_M6 0x19 472 #define BF20_MIC_LEVEL_M7 0x1A 473 #define BF20_MIC_LEVEL_M8 0x1B 474 #define BF20_MIC_LEVEL_M9 0x1C 475 #define BF20_MIC_LEVEL_M10 0x1D 476 #define BF20_MIC_LEVEL_M11 0x1E 478 #define BF20_MIC_LEVEL_MIN BF20_MIC_LEVEL_P3 479 #define BF20_MIC_LEVEL_MAX BF20_MIC_LEVEL_M11 481 int intFn_BF20_SetMicrophoneLevel(
TiproHidDevice *device,
int nAddress,
int nLevel,
bool bSetInit =
false);
482 int intFn_BF20_GetMicrophoneLevel(
TiproHidDevice *device,
int nAddress,
int *nLevel,
int *nInitLevel);
485 #define BF20_MIC_DISTANCE_M2 0x0A 486 #define BF20_MIC_DISTANCE_M1 0x0B 487 #define BF20_MIC_DISTANCE_0 0x0C 488 #define BF20_MIC_DISTANCE_P1 0x0D 489 #define BF20_MIC_DISTANCE_P2 0x0E 490 #define BF20_MIC_DISTANCE_P3 0x0F 491 #define BF20_MIC_DISTANCE_P4 0x10 492 #define BF20_MIC_DISTANCE_P5 0x11 493 #define BF20_MIC_DISTANCE_P6 0x12 494 #define BF20_MIC_DISTANCE_P7 0x13 495 #define BF20_MIC_DISTANCE_P8 0x14 497 #define BF20_MIC_DISTANCE_VERY_SHORT BF20_MIC_DISTANCE_0 498 #define BF20_MIC_DISTANCE_SHORT BF20_MIC_DISTANCE_P2 499 #define BF20_MIC_DISTANCE_MEDIUM BF20_MIC_DISTANCE_P4 500 #define BF20_MIC_DISTANCE_LONG BF20_MIC_DISTANCE_P6 502 #define BF20_MIC_DISTANCE_MIN BF20_MIC_DISTANCE_M2 503 #define BF20_MIC_DISTANCE_MAX BF20_MIC_DISTANCE_P8 505 int intFn_BF20_SetMicrophoneOptimalDistance(
TiproHidDevice *device,
int nAddress,
int nDistance,
bool bSetInit =
false);
506 int intFn_BF20_GetMicrophoneOptimalDistance(
TiproHidDevice *device,
int nAddress,
int *nDistance,
int *nInitDistance);
509 #define BF20_MIC_COMPRESSION_OFF 0x10 510 #define BF20_MIC_COMPRESSION_ON 0x11 512 #define BF20_MIC_COMPRESSION_MIN BF20_MIC_COMPRESSION_OFF 513 #define BF20_MIC_COMPRESSION_MAX BF20_MIC_COMPRESSION_ON 515 int intFn_BF20_SetMicrophoneCompression(
TiproHidDevice *device,
int nAddress,
int nCompression,
bool bSetInit =
false);
516 int intFn_BF20_GetMicrophoneCompression(
TiproHidDevice *device,
int nAddress,
int *nCompression,
int *nInitCompression);
519 #define BF20_MIC_THRESHOLD_HIGH 0x10 520 #define BF20_MIC_THRESHOLD_MID 0x11 521 #define BF20_MIC_THRESHOLD_LOW 0x12 522 #define BF20_MIC_THRESHOLD_LOWER 0x13 523 #define BF20_MIC_THRESHOLD_VERY_LOW 0x14 525 #define BF20_MIC_THRESHOLD_MIN BF20_MIC_THRESHOLD_HIGH 526 #define BF20_MIC_THRESHOLD_MAX BF20_MIC_THRESHOLD_VERY_LOW 528 int intFn_BF20_SetMicrophoneThreshold(
TiproHidDevice *device,
int nAddress,
int nThreshold,
bool bSetInit =
false);
529 int intFn_BF20_GetMicrophoneThreshold(
TiproHidDevice *device,
int nAddress,
int *nThreshold,
int *nInitThreshold);
532 #define BF20_LUMINANCE_MIN 0x00 533 #define BF20_LUMINANCE_MAX 0x14 535 int intFn_BF20_SetLuminance(
TiproHidDevice *device,
int nAddressBF,
int nAddressSbx,
int nIndex);
536 int intFn_BF20_GetLuminance(
TiproHidDevice *device,
int nAddress,
int *nIndex);
540 int intFn_BF20_GetKeyState(
TiproHidDevice *device,
int nAddress,
int nKey,
int *nState);
Definition: TiproHidDevice.h:29