增加以太网传入RTCM数据
This commit is contained in:
@@ -256,13 +256,20 @@ typedef struct _StrRequestMessage
|
||||
// uint8_t data[4];
|
||||
// }YisDateFrame;
|
||||
|
||||
typedef enum{
|
||||
init = 0,
|
||||
uart,
|
||||
ethernet,
|
||||
}rtcm_type;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t dma_buffer[2][RX_BUFFER_LEN]; // 双缓冲
|
||||
volatile uint8_t active_buf; // 当前活跃缓冲区索引
|
||||
volatile uint16_t buf_len; // 当前活跃缓冲区索引
|
||||
volatile uint8_t active_buf; // 当前活跃缓冲区索引
|
||||
volatile uint16_t buf_len; // 当前活跃缓冲区索引
|
||||
volatile rtcm_type type; // 串口或者以太网
|
||||
volatile uint8_t eth_cnt; // 当前活跃缓冲区索引
|
||||
} rtcmBuffer;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user