增加以太网传入RTCM数据

This commit is contained in:
2025-11-22 21:45:02 +08:00
parent 2f580d0d3a
commit ef5126e4f4
6 changed files with 252 additions and 128 deletions

View File

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