acarsdec

an ACARS decoder
git clone git://r-36.net/acarsdec
Log | Files | Refs | README

acarsdec.h (817B)


      1 typedef struct {
      2 	unsigned char mode;
      3 	unsigned char addr[8];
      4 	unsigned char ack;
      5 	unsigned char label[3];
      6 	unsigned char bid;
      7 	unsigned char no[5];
      8 	unsigned char fid[7];
      9 	char txt[256];
     10 	int txtlen;
     11 } msg_t;
     12 
     13 extern int initsample(char *sourcename, int src);
     14 extern int getsample(short *sample, int nb);
     15 extern void endsample(void);
     16 
     17 extern void init_bits(void);
     18 extern void resetbits(int ch);
     19 extern int getbit(short in, unsigned char *outbits, int ch);
     20 
     21 extern void init_mesg(void);
     22 extern int getmesg(unsigned char r, msg_t *msg, int ch);
     23 
     24 extern int init_serv(short port);
     25 extern int send_mesg(msg_t *msg);
     26 extern int posconv(char *text, unsigned char *label, char *pos);
     27 extern void end_serv(void);
     28 
     29 enum {
     30 	IN_FILE = 0,
     31 	IN_ALSA = 1,
     32 	IN_STDIN = 2,
     33 
     34 	OUT_NET = 0x01,
     35 	OUT_PRINT = 0x02,
     36 	OUT_PROTO = 0x04,
     37 };
     38