怎么把一个结构体的数据包通过串口发送出去?
typedef struct{
uint8_t name;
uint8_t sex;
uint8_t age;
....
}Person;
串口发送函数:
USART1_Send((u8*)&Person,sizeof(Person));
typedef struct{
uint8_t name;
uint8_t sex;
uint8_t age;
....
}Person;
串口发送函数:
USART1_Send((u8*)&Person,sizeof(Person));