#ifdef __cplusplus
extern "C" {
-#ifdef _doh
-}
-#endif
#endif
-
#define TELETONE_MAX_DTMF_DIGITS 128
#define TELETONE_MAX_TONES 6
#define TELETONE_TONE_RANGE 127
typedef double teletone_process_t;
/*! \file libteletone.h
- \brief Top level include file
+ \brief Top level include file
- This file should be included by applications using the library
+ This file should be included by applications using the library
*/
/*! \brief An abstraction to store a tone mapping */
teletone_process_t freqs[TELETONE_MAX_TONES];
} teletone_tone_map_t;
-
#if !defined(M_PI)
/* C99 systems may not define M_PI */
#define M_PI 3.14159265358979323846264338327
uint32_t scale_factor;
uint32_t phase_accumulator;
int16_t sample;
- int32_t tx_level;
+ float tx_level;
};
typedef struct teletone_dds_state teletone_dds_state_t;
/* 3.02 represents twice the power */
#define DBM0_MAX_POWER (3.14f + 3.02f)
-const int16_t TELETONE_SINES[SINE_TABLE_MAX];
+extern int16_t TELETONE_SINES[SINE_TABLE_MAX];
static __inline__ int16_t teletone_dds_modulate_sample(teletone_dds_state_t *dds)
{
#pragma warning(disable:4706)
#endif
-const int16_t TELETONE_SINES[SINE_TABLE_MAX] = {
+int16_t TELETONE_SINES[SINE_TABLE_MAX] = {
0x00c9, 0x025b, 0x03ed, 0x057f, 0x0711, 0x08a2, 0x0a33, 0x0bc4,
0x0d54, 0x0ee4, 0x1073, 0x1201, 0x138f, 0x151c, 0x16a8, 0x1833,
0x19be, 0x1b47, 0x1cd0, 0x1e57, 0x1fdd, 0x2162, 0x22e5, 0x2467,