📄 rtstr.h
字号:
#ifndef __RT_STRUC_H
#define __RT_STRUC_H
#ifdef SIMU_ON_PC /*zch for protocol simulator */
#pragma pack( push, rtstructure,1)
#endif
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U2 evt_code;
U1 (*fnc_adr)(void);
U2 state;
}SYS_STATE_TBL;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U1 *nxt;
U2 qno;
U1 msg[MSGDAT_SZ];
} M_MSB;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U1 *next_po;
U1 lst_len;
U1 len;
U1 dat[L3_MSGSZ];
} RT_MSGDAT;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U2 in_evt[8];
U2 tsk_id;
U2 out_evt[8];
U2 tim_inf[11];
//RT_FNC_TBL *sts_ptr;
//U1 sts_cnt;
//U1 sts_dat;
//U1 sig;
//U1 plr;
//U1 plr_id;
//U1 sig_opt;
U1 *inf_ptr;
//U1 *inf_bak;
//U1 *tbl_ptr;
} RT_SYSWRK;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U2 evt_cod;
U2 dl_typ;
U2 dl_id;
U2 dl_sou;
RT_MSGDAT *msg_adr;
U2 dont_care[2];
} RT_DLDEVT;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U2 evt_cod;
U2 pri_cod;
U1 *buf_adr;
U2 inf_len;
U1 *inf_adr;
U1 add_dat;
U1 dmy3;
} RT_PRIEVT;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U2 evt_cod;
U2 pri_cod;
U1 msg_dat[6]; //5:max lch count.
U1 dmy[6];
} RT_LCHEVT;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U1 cs_id[6];
U1 rssi;
U1 slot;
} RT_MNTCS;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U1 cs_id[6];
U1 car_num;
U1 slt_num;
U1 abs_slot;
U1 cch_car;
} RT_RADINF;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U1 SlotInf;
U1 Rssi;
U1 Csid[6];
U1 RxData[8];
} CCH_MON_INF;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
CCH_MON_INF CsInf[240];
} CCH_MON_LIST;
#ifdef _ARM607_
__packed
#endif
typedef struct
{
U1 element_id;
U1 option;
U1 man_flag;
U1 link_direction;
U1 type;
U1 len;
}rt_info_element_t;
#ifdef _ON_SANYO_
extern unsigned char Sys_work[];
#define SYS_WORK ((RT_SYSWRK *)Sys_work)
#else
#define SYS_WORK ((RT_SYSWRK *)&rt_syswork)
#endif
#define IN_DLDEVT ((RT_DLDEVT *)SYS_WORK->in_evt)
#define OUT_DLDEVT ((RT_DLDEVT *)SYS_WORK->out_evt)
#define IN_PRIEVT ((RT_PRIEVT *)SYS_WORK->in_evt)
#define OUT_PRIEVT ((RT_PRIEVT *)SYS_WORK->out_evt)
#define IN_LCHEVT ((RT_LCHEVT *)SYS_WORK->in_evt)
#define OUT_LCHEVT ((RT_LCHEVT *)SYS_WORK->out_evt)
#define IN_MSGDAT ((RT_MSGDAT *)IN_DLDEVT->msg_adr)
#define OUT_MSGDAT ((RT_MSGDAT *)OUT_DLDEVT->msg_adr)
#ifdef SIMU_ON_PC /*zch for protocol simulator */
#pragma pack( pop, rtstructure,1)
#endif
#endif /* __RT_STRUC_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -