Tipro API
Communicate with Tipro devices
SpeakerBox104.h
1
/*##PBP DEPLOY*/
2
#pragma once
3
/****************************************************************************/
4
/* SPEAKERBOX 104 DEFINES */
5
/****************************************************************************/
6
7
// available audio outputs
8
#define SBX104_HEADSET_SPEAKER 0x00
9
#define SBX104_EXTERNAL_SPEAKER 0x02
10
#define SBX104_RECORDING_OUTPUT 0x03
11
12
// audio outputs levels
13
#define SBX104_AUDIO_OUTPUT_LEVEL_0 0x00
14
#define SBX104_AUDIO_OUTPUT_LEVEL_1 0x01
15
#define SBX104_AUDIO_OUTPUT_LEVEL_2 0x02
16
#define SBX104_AUDIO_OUTPUT_LEVEL_3 0x03
17
#define SBX104_AUDIO_OUTPUT_LEVEL_4 0x04
18
#define SBX104_AUDIO_OUTPUT_LEVEL_5 0x05
19
#define SBX104_AUDIO_OUTPUT_LEVEL_6 0x06
20
#define SBX104_AUDIO_OUTPUT_LEVEL_7 0x07
21
#define SBX104_AUDIO_OUTPUT_LEVEL_8 0x08
22
#define SBX104_AUDIO_OUTPUT_LEVEL_9 0x09
23
#define SBX104_AUDIO_OUTPUT_LEVEL_10 0x0A
24
25
#define SBX104_AUDIO_OUTPUT_LEVEL_MIN SBX104_AUDIO_OUTPUT_LEVEL_0
26
#define SBX104_AUDIO_OUTPUT_LEVEL_MAX SBX104_AUDIO_OUTPUT_LEVEL_10
27
28
// LEDs
29
#define SBX104_LED_1 0x00
/* LED can not be used by API ( used for 12V detection ) */
30
#define SBX104_LED_2 0x01
/* LED can not be used by API ( used for microphone state indication ) */
31
#define SBX104_LED_3 0x02
32
#define SBX104_LED_4 0x03
33
34
#define SBX104_LED_OFF 0x00
35
#define SBX104_LED_ON 0x01
36
37
// microphone
38
#define SBX104_MIC_ACTIVE 0x00
39
#define SBX104_MIC_MUTE 0x01
40
41
// microphone level
42
#define SBX104_MIC_LEVEL_0 0x00
43
#define SBX104_MIC_LEVEL_1 0x01
44
#define SBX104_MIC_LEVEL_2 0x02
45
#define SBX104_MIC_LEVEL_3 0x03
46
#define SBX104_MIC_LEVEL_4 0x04
47
#define SBX104_MIC_LEVEL_5 0x05
48
#define SBX104_MIC_LEVEL_6 0x06
49
#define SBX104_MIC_LEVEL_7 0x07
50
#define SBX104_MIC_LEVEL_8 0x08
51
#define SBX104_MIC_LEVEL_9 0x09
52
#define SBX104_MIC_LEVEL_10 0x0A
53
#define SBX104_MIC_LEVEL_11 0x0B
54
#define SBX104_MIC_LEVEL_12 0x0C
55
#define SBX104_MIC_LEVEL_13 0x0D
56
#define SBX104_MIC_LEVEL_14 0x0E
57
58
#define SBX104_MIC_LEVEL_MIN SBX104_MIC_LEVEL_0
59
#define SBX104_MIC_LEVEL_MAX SBX104_MIC_LEVEL_14
60
61
// microphone pre-amplifer level
62
#define SBX104_MIC_PRE_AMP_LEVEL_0 0x00
63
#define SBX104_MIC_PRE_AMP_LEVEL_1 0x01
64
#define SBX104_MIC_PRE_AMP_LEVEL_2 0x02
65
#define SBX104_MIC_PRE_AMP_LEVEL_3 0x03
66
#define SBX104_MIC_PRE_AMP_LEVEL_4 0x04
67
#define SBX104_MIC_PRE_AMP_LEVEL_5 0x05
68
#define SBX104_MIC_PRE_AMP_LEVEL_6 0x06
69
#define SBX104_MIC_PRE_AMP_LEVEL_7 0x07
70
#define SBX104_MIC_PRE_AMP_LEVEL_8 0x08
71
#define SBX104_MIC_PRE_AMP_LEVEL_9 0x09
72
#define SBX104_MIC_PRE_AMP_LEVEL_10 0x0A
73
74
#define SBX104_MIC_PRE_AMP_LEVEL_MIN SBX104_MIC_PRE_AMP_LEVEL_0
75
#define SBX104_MIC_PRE_AMP_LEVEL_MAX SBX104_MIC_PRE_AMP_LEVEL_10
76
77
78
// compression settings
79
#define SBX104_MIC_COMPRESSION_OFF 0x10
80
#define SBX104_MIC_COMPRESSION_ON 0x11
81
#define SBX104_MIC_COMPRESSION_ILLEGAL 0xFF
82
83
84
// noise threshold
85
#define SBX104_MIC_THRESHOLD_VERY_LOW 0x10
86
#define SBX104_MIC_THRESHOLD_LOW 0x11
87
#define SBX104_MIC_THRESHOLD_MID 0x12
88
#define SBX104_MIC_THRESHOLD_HIGH 0x13
89
#define SBX104_MIC_THRESHOLD_ILLEGAL 0xFF
90
91
#define SBX104_MIC_THRESHOLD_MIN SBX104_MIC_THRESHOLD_VERY_LOW
92
#define SBX104_MIC_THRESHOLD_MAX SBX104_MIC_THRESHOLD_HIGH
Generated by
1.8.13