liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1#ifndef LIGHTMODBUS_DEBUG_H
2#define LIGHTMODBUS_DEBUG_H
3
4#include "base.h"
5#include "slave.h"
6
12const char *modbusErrorStr(ModbusError err);
13const char *modbusErrorSourceStr(uint8_t src);
15const char *modbusDataTypeStr(ModbusDataType type);
17
18#endif
Common types and functions (header)
ModbusExceptionCode
Represents a Modbus exception code.
Definition base.h:230
ModbusDataType
Represents different Modbus data types.
Definition base.h:244
ModbusError
Represtents different kinds of errors.
Definition base.h:137
const char * modbusRegisterQueryStr(ModbusRegisterQuery query)
Returns a string containing the name of the ModbusRegisterQuery enum value.
Definition debug.impl.h:102
const char * modbusErrorStr(ModbusError err)
Returns a string containing the name of the ModbusError value.
Definition debug.impl.h:26
const char * modbusErrorSourceStr(uint8_t src)
Returns a string containing the name error source.
Definition debug.impl.h:51
const char * modbusDataTypeStr(ModbusDataType type)
Returns a string containing the name of the ModbusDataType enum value.
Definition debug.impl.h:86
const char * modbusExceptionCodeStr(ModbusExceptionCode code)
Returns a string containing the name of the ModbusExceptionCode enum value.
Definition debug.impl.h:67
Slave's types and basic functions (header)
ModbusRegisterQuery
Determines type of request made to the register callback function.
Definition slave.h:37