liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
Loading...
Searching...
No Matches
llm Namespace Reference

The liblightmodbus C++ namepsace. More...

Data Structures

class  GeneralError
 General error exception class. More...
 
class  Master
 Represents a Modbus master device. More...
 
class  RequestError
 Request error exception class. More...
 
class  ResponseError
 Response error exception class. More...
 
class  Slave
 Represents a Modbus slave device. More...
 

Functions

static void throwErrorInfo (ModbusErrorInfo err)
 Throws an exception based on ModbusErrorInfo.
 

Detailed Description

The liblightmodbus C++ namepsace.

Function Documentation

◆ throwErrorInfo()

static void llm::throwErrorInfo ( ModbusErrorInfo  err)
inlinestatic

Throws an exception based on ModbusErrorInfo.

Parameters
errThe ModbusErrorInfo to convert to an exception
Exceptions
GeneralErrorif modbusGetGeneralError(err) is not MODBUS_OK
RequestErrorif modbusGetRequestError(err) is not MODBUS_OK
ResponseErrorif modbusGetResponseError(err) is not MODBUS_OK
+ Here is the call graph for this function:
+ Here is the caller graph for this function: