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.
29 lines
755 B
29 lines
755 B
#ifndef INSIFHTICA_QOAR1271_H |
|
#define INSIFHTICA_QOAR1271_H |
|
|
|
#define AR1271_HEAD1 0x54 |
|
#define AR1271_HEAD2 0x48 |
|
|
|
#include "main.h" |
|
#define LIDAR_360_SIZE 20 |
|
|
|
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; |
|
} proximity_t; |
|
|
|
uint8_t crc_crc8(const uint8_t *p, uint8_t len); |
|
bool patse_ar1271_data(uint8_t *in_data, uint8_t datalengh, uint8_t *out_data); |
|
uint16_t uint16_value(uint8_t h_byte,uint8_t l_byte); |
|
void parse_ar1271_data(usart_data_t *usart_data); |
|
void request_QOAR1271_data(void); |
|
void request_qoar1271_by_step(uint8_t step, uint8_t usart_index); |
|
void deal_send_data(usart_data_t *rev_data); |
|
#endif /* INSIFHTICA_QOAR1271_H */
|
|
|