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));