Go to the documentation of this file.
30 #define CAPIDTMF_TONE_GROUP_COUNT 2
31 #define CAPIDTMF_LOW_GROUP_FREQUENCIES 4
32 #define CAPIDTMF_HIGH_GROUP_FREQUENCIES 4
33 #define DSPDTMF_RX_SENSITIVITY_LOW_DEFAULT 50
34 #define DSPDTMF_RX_SENSITIVITY_HIGH_DEFAULT 50
35 #define DSPDTMF_RX_HIGH_EXCEEDING_LOW_DEFAULT 10
36 #define DSPDTMF_RX_LOW_EXCEEDING_HIGH_DEFAULT 10
37 #define DSPDTMF_RX_HARMONICS_SEL_DEFAULT 12
38 #define CAPIDTMF_RECV_BASE_FREQUENCY_COUNT (CAPIDTMF_LOW_GROUP_FREQUENCIES + CAPIDTMF_HIGH_GROUP_FREQUENCIES)
39 #define CAPIDTMF_RECV_GUARD_FREQUENCY_COUNT 8
40 #define CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT (CAPIDTMF_RECV_BASE_FREQUENCY_COUNT + CAPIDTMF_RECV_GUARD_FREQUENCY_COUNT)
41 #define CAPIDTMF_RECV_POSITIVE_COEFF_COUNT 16
42 #define CAPIDTMF_RECV_NEGATIVE_COEFF_COUNT (CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT - CAPIDTMF_RECV_POSITIVE_COEFF_COUNT)
43 #define CAPIDTMF_RECV_ACCUMULATE_CYCLES 205
44 #define CAPIDTMF_RECV_FUNDAMENTAL_OFFSET (0xff35L * 2)
45 #define CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT (0x0028L * 2)
46 #define CAPIDTMF_RECV_DIGIT_BUFFER_SIZE 32
47 #define CAPIDTMF_RECV_STATE_IDLE 0x00
48 #define CAPIDTMF_RECV_STATE_DTMF_ACTIVE 0x01
75 #define capidtmf_indication(p_state, buffer) (((p_state)->recv.indication_state != (p_state)->recv.indication_state_ack) ? capidtmf_recv_indication(p_state, buffer) : 0)
76 #define capidtmf_recv_process_block(p_state, buffer, length) { if ((p_state)->recv.state != CAPIDTMF_RECV_STATE_IDLE) capidtmf_recv_block(p_state, buffer, length); }