Рефакторинг modbus_core енумов и структур
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/** MODBUS_LEGACY_API
|
||||
* @}
|
||||
*/
|
||||
@@ -21,7 +22,7 @@
|
||||
/** @cond Заглушки отключенных модулей */
|
||||
|
||||
#ifndef MODBUS_ENABLE_COILS
|
||||
#define MB_Coil_Write_Global(Addr, WriteVal) ILLEGAL_FUNCTION
|
||||
#define MB_Coil_Write_Global(Addr, WriteVal) ET_ILLEGAL_FUNCTION
|
||||
#define MB_Coil_Read_Global(Addr, Exception) 0
|
||||
#define MB_Process_Read_Coils(modbus_msg) 0
|
||||
#define MB_Process_Write_Single_Coil(modbus_msg) 0
|
||||
@@ -29,7 +30,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef MODBUS_ENABLE_HOLDINGS
|
||||
#define MB_Holding_Write_Global(Addr, WriteVal) ILLEGAL_FUNCTION
|
||||
#define MB_Holding_Write_Global(Addr, WriteVal) ET_ILLEGAL_FUNCTION
|
||||
#define MB_Holding_Read_Global(Addr, Exception) 0
|
||||
#define MB_Process_Read_Hold_Regs(modbus_msg) 0
|
||||
#define MB_Process_Write_Single_Reg(modbus_msg) 0
|
||||
@@ -37,7 +38,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef MODBUS_ENABLE_INPUTS
|
||||
#define MB_Input_Write_Global(Addr, WriteVal) ILLEGAL_FUNCTION
|
||||
#define MB_Input_Write_Global(Addr, WriteVal) ET_ILLEGAL_FUNCTION
|
||||
#define MB_Input_Read_Global(Addr, Exception) 0
|
||||
#define MB_Process_Read_Input_Regs(modbus_msg) 0
|
||||
#endif
|
||||
@@ -111,4 +112,4 @@
|
||||
#define MB_Slave_Parse_Message(hmodbus, modbus_msg, modbus_uart_buff) RS_ERR
|
||||
#endif
|
||||
|
||||
/** @endcond */
|
||||
/** @endcond */
|
||||
|
||||
Reference in New Issue
Block a user