chiark / gitweb /
nice new proto-parse stuff
[trains.git] / hostside / skelproto-pic.h
1 /*
2  * arranges for the declarations of
3  *  enco_pic_WHATEVER
4  *  onrecv_pic_WHATEVER
5  * and the tables
6  */
7
8 #ifndef AUPROTO_PIC_H
9 #define AUPROTO_PIC_H
10
11 void enco_pic_@cname@(PicInsn *out);            @h2p@ @arglentf=0@
12 void enco_pic_@cname@(PicInsn *out, int objum); @h2p@ @arglentf=1@
13
14 void on_pic_@cnameyn@(void);       @p2h@ @arglentf=0@
15 void on_pic_@cnameyn@(int objnum); @p2h@ @arglentf=1@
16
17 extern void enco_pic_polarity_begin(PicInsn *out);
18 extern void enco_pic_polarity_setbit(PicInsn *out, int objnum);
19 extern void on_pic_debug(int ch);
20
21 typedef struct PicInsnInfo PicInsnInfo;
22 struct PicInsnInfo {
23   const char *name;
24   Byte opcode;
25   int argbits;
26 };
27
28 extern const PicInsnInfo pic_command_infos[], pic_reply_infos[];
29
30 #endif /*AUPROTO_PIC_H*/