File: cwdecoder.h

package info (click to toggle)
cwirc 2.0.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 640 kB
  • ctags: 589
  • sloc: ansic: 5,423; makefile: 292
file content (41 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Definitions */
#define UNKNOWN_CHARACTER_SIGN	"_"
#define NB_CW_CODE_SETS		6
#define CW_CODESET_SIZE_MAX	94
#define CW_SEQUENCE_MAX		9
#define CW_SYMBOL_MAX		5
#define LANG_NAME_SIZE_MAX	8
#define MENU_ENTRY_SIZE_MAX	14
/* Code types */
#define NOCODE			0
#define MORSE			1
#define DOT			2
/* Special meanings of the decoded_msg_wpm variable */
#define WPM_UNKNOWN_WPM		-1
#define WPM_DECODER_DISABLED	-2



/* Types */
struct cwsymbol
{
  char sequence[CW_SEQUENCE_MAX+1];
  char symbol[CW_SYMBOL_MAX+1];
};
struct cwcodeset
{
  char lang[LANG_NAME_SIZE_MAX+1];
  char lang_menu_entry[MENU_ENTRY_SIZE_MAX+1];
  char cwcodetype;
  struct cwsymbol cwcode[CW_CODESET_SIZE_MAX];
};



/* Global variables */
extern struct cwcodeset cwirc_cw_table[];



/* Prototypes */
void cwirc_decode_cw(T_BOOL key,double ticklen,int cwcodeset);