怎么把一个结构体的数据包通过串口发送出去?

typedef struct{ 

      uint8_t name;

      uint8_t sex;

      uint8_t age;  

      ....

 }Person; 

串口发送函数:

USART1_Send((u8*)&Person,sizeof(Person));

猜你喜欢

转载自www.cnblogs.com/liangbo-1024/p/9209785.html