union.bak

来自「讲解了串口通讯的几个实例」· BAK 代码 · 共 29 行

BAK
29
字号
extern int ReceiveDone;
extern long int com1Count;
extern long int com1Rx_len

extern union unionSend
{

    unsigned  char Sendstring[58];
    struct structSend
    {
    unsigned short int  head;// 帧头0xffff		2 
    float Lat;// 纬度					4
    float Lgt;//						4
    float Hlg;// 高度					4
    float Yaw;//						4
    float Pitch;//						4
    float Roll;//						4	
    float wx;//x角速度					4
    float wy;//							4
    float wz;//							4
    float wax;// x角加速度				4
    float way;//						4
    float waz;//						4
    unsigned char  GPStime[6];// 时间hhmmss //	6
    unsigned int CheckValue;// 两字节校验 //	2

    }s1;
}Sendunion;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?