liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
|
Debug utilities (implementation) More...
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | ESTR(x) [(int)(x)] = #x |
Defines a field in array holding name of the enum value. | |
#define | ECASE(x) case (int)(x): return #x; break; |
Defines a case halding enum value, returning the name of the enum value. | |
Functions | |
const char * | modbusErrorStr (ModbusError err) |
Returns a string containing the name of the ModbusError value. | |
const char * | modbusErrorSourceStr (uint8_t src) |
Returns a string containing the name error source. | |
const char * | modbusExceptionCodeStr (ModbusExceptionCode code) |
Returns a string containing the name of the ModbusExceptionCode enum value. | |
const char * | modbusDataTypeStr (ModbusDataType type) |
Returns a string containing the name of the ModbusDataType enum value. | |
const char * | modbusRegisterQueryStr (ModbusRegisterQuery query) |
Returns a string containing the name of the ModbusRegisterQuery enum value. | |
Debug utilities (implementation)
#define ECASE | ( | x | ) | case (int)(x): return #x; break; |
Defines a case halding enum value, returning the name of the enum value.
#define ESTR | ( | x | ) | [(int)(x)] = #x |
Defines a field in array holding name of the enum value.
const char * modbusDataTypeStr | ( | ModbusDataType | type | ) |
Returns a string containing the name of the ModbusDataType enum value.
const char * modbusErrorSourceStr | ( | uint8_t | src | ) |
Returns a string containing the name error source.
const char * modbusErrorStr | ( | ModbusError | err | ) |
Returns a string containing the name of the ModbusError value.
const char * modbusExceptionCodeStr | ( | ModbusExceptionCode | code | ) |
Returns a string containing the name of the ModbusExceptionCode enum value.
const char * modbusRegisterQueryStr | ( | ModbusRegisterQuery | query | ) |
Returns a string containing the name of the ModbusRegisterQuery enum value.