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

20 lines
360 B
C

#pragma once
#ifndef _YSP_MODBUS_MASTER_H
#define _YSP_MODBUS_MASTER_H
/*
008EH 008FH slave address
*/
//modbus 从机tcp ipaddr
void xMaster_Set_slave_ip_addr(const char* ip_addr);
//modbus从机tcp port
void xMaster_Set_slave_port(const char* tcp_port);
/*
寄存器的逻辑空间分配
气体数据 + 从机地址 // 寄存器地址连续
*/
int xModbus_master_task_init();
#endif