BusBricks: /Users/felixschulke/Developement/Arduino/Modbus_RTU/Modbus_RTU/Modbus-RTU/lib/ErrorService/Error.h File Reference
BusBricks  0.1
Customize bus-communication
Loading...
Searching...
No Matches
Error.h File Reference
#include <iostream>
#include <cstring>
#include <cstdio>
#include <mockArduino.h>
#include "Content.h"
Include dependency graph for Error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ErrorContent_t
 Structure to hold an error code and its associated message. More...
 
class  Error
 Represents an error with it's error-content (error-code and an error-message), and provides methods for converting between sendable PDU and error-content. More...
 

Enumerations

enum  errorCodes {
  noError = '0' , framingError = '1' , crcError = '2' , arbitrationError = '3' ,
  serviceNotFound = '4' , frameLengthError = '5' , overflow = '6' , unknownError = 'X'
}
 Enumeration for various error codes. More...
 

Detailed Description

Author
Felix Schuelke (flxsc.nosp@m.ode@.nosp@m.gmail.nosp@m..com)
Version
0.1
Date
2024-08-18

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Enumeration Type Documentation

◆ errorCodes

enum errorCodes

Enumeration for various error codes.

This enum defines the various error codes that can be used to represent different error states. Ensure that noError is defined as the neutral value indicating no active error.

Enumerator
noError 

no Error

framingError 

Structure of the frame is not as expected by the services content-representation-definition.

crcError 

CRC checksum incorrect.

arbitrationError 

Violated silence-time between frames.

serviceNotFound 

The Service-Id addressed by the frame was not found in the service-cluster.

frameLengthError 

Maximum framelength violated.

overflow 

Send- or Receivestack reached max. size of items.

unknownError 

Unknown Error.