g0b1vetx-board/middleware/modbus/modbus-mp.c
2023-04-29 09:09:12 +08:00

23 lines
300 B
C

/* modbus 主机实现*/
#include<stdint.h>
static uint8_t s_tx_buffer[512];
static uint16_t s_tx_length;
static uint8_t rx_buffer[512];
// 读取保持寄存器的值
// addr 寄存器地址
// id 丛机地址
// length 读取丛机数据长度
int modbus_m_read_regist(uint8_t id,uint16_t addr,uint16_t length)
{
}