You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
501 B

#ifndef CUSTOM_DATA_DEF_H
#define CUSTOM_DATA_DEF_H
#include "stm32f1xx_hal.h"
#include "stdbool.h"
#define BUFFER_SIZE 50
typedef struct
{
uint16_t len;
uint8_t usart_instance;
uint8_t data[BUFFER_SIZE];
} usart_data_t;
typedef struct
{
uint16_t d0;
uint16_t d45;
uint16_t d90;
uint16_t d135;
uint16_t d180;
uint16_t d225;
uint16_t d270;
uint16_t d315;
uint16_t d_left;
uint16_t d_right;
}proximity_data_t;
#endif /* CUSTOM_DATA_DEF_H */