27static const int8_t conv_encode_input[8][8] =
29 { 0, 0, 1, 1, 8, 8, 9, 9},
30 { 3, 2, 2, 3, 11, 10, 10, 11},
31 { 5, 5, 4, 4, 13, 13, 12, 12},
32 { 6, 7, 7, 6, 14, 15, 15, 14},
33 { 8, 8, 9, 9, 0, 0, 1, 1},
34 {11, 10, 10, 11, 3, 2, 2, 3},
35 {13, 13, 12, 12, 5, 5, 4, 4},
36 {14, 15, 15, 14, 6, 7, 7, 6}
40static const uint8_t v34_conv16_decode_table[16][16] =
42 {0x00, 0x12, 0x64, 0x76},
43 {0x10, 0x02, 0x74, 0x66},
44 {0x20, 0x32, 0x44, 0x56},
45 {0x30, 0x22, 0x54, 0x46},
46 {0x40, 0x52, 0x24, 0x36},
47 {0x50, 0x42, 0x34, 0x26},
48 {0x60, 0x72, 0x04, 0x16},
49 {0x70, 0x62, 0x14, 0x06},
50 {0x49, 0x5B, 0x2D, 0x3F},
51 {0x59, 0x4B, 0x3D, 0x2F},
52 {0x69, 0x7B, 0x0D, 0x1F},
53 {0x79, 0x6B, 0x1D, 0x0F},
54 {0x09, 0x1B, 0x6D, 0x7F},
55 {0x19, 0x0B, 0x7D, 0x6F},
56 {0x29, 0x3B, 0x4D, 0x5F},
57 {0x39, 0x2B, 0x5D, 0x4F}
63 V34_BAUD_RATE_2400 = 0,
64 V34_BAUD_RATE_2743 = 1,
65 V34_BAUD_RATE_2800 = 2,
66 V34_BAUD_RATE_3000 = 3,
67 V34_BAUD_RATE_3200 = 4,
68 V34_BAUD_RATE_3429 = 5
76 V34_TRELLIS_RESERVED = 3
81 TX_CLOCK_SOURCE_INTERNAL = 0,
82 TX_CLOCK_SOURCE_SYNCED_TO_RX = 1,
83 TX_CLOCK_SOURCE_EXTERNAL = 2,
84 TX_CLOCK_SOURCE_RESERVED_FOR_ITU_T = 3
313 {2400, (21600/2400 - 1) << 1, 1, 1, 10, 3, {{2, 3}, {3, 4}}, 7, 12, mappings_2400},
314 {2743, (26400/2400 - 1) << 1, 8, 7, 35, 12, {{3, 5}, {2, 3}}, 8, 12, mappings_2743},
315 {2800, (26400/2400 - 1) << 1, 7, 6, 20, 7, {{3, 5}, {2, 3}}, 7, 14, mappings_2800},
316 {3000, (28800/2400 - 1) << 1, 5, 4, 8, 3, {{3, 5}, {2, 3}}, 7, 15, mappings_3000},
317 {3200, (31200/2400 - 1) << 1, 4, 3, 5, 2, {{4, 7}, {3, 5}}, 7, 16, mappings_3200},
318 {3429, (33600/2400 - 1) << 1, 10, 7, 7, 3, {{4, 7}, {4, 7}}, 8, 15, mappings_3429}
321#if defined(SPANDSP_USE_FIXED_POINT)
322#define PP_SYMBOL_SCALE(x) ((int16_t) (32767.0f*x + ((x >= 0.0) ? 0.5 : -0.5)))
324#define PP_SYMBOL_SCALE(x) (x)
327#if defined(SPANDSP_USE_FIXED_POINT)
328#define LINE_PROBE_SCALE(x) ((int16_t) (x + ((x >= 0.0) ? 0.5 : -0.5)))
330#define LINE_PROBE_SCALE(x) (x)
333static const uint8_t k_table[16][4] =
364 {
true,
true,
true,
true,
true,
true},
365 {
true,
true,
true,
true,
true,
true},
369 TX_CLOCK_SOURCE_INTERNAL,
Definition v34_tables.h:290
int baud_rate
Definition v34_tables.h:292
int max_bit_rate_code
Definition v34_tables.h:294
int samples_per_symbol_denominator
Definition v34_tables.h:300
int samples_per_symbol_numerator
Definition v34_tables.h:298
Definition v34_tables.h:89
Definition private/v34.h:182