ApraLinuxUtils 1.0.0
C++ utility library for embedded Linux systems
 
Loading...
Searching...
No Matches
I2CError.h
Go to the documentation of this file.
1/*
2 * I2CErrorCode.h
3 *
4 * Copyright (c) 2024 Apra Labs
5 *
6 * This file is part of ApraUtils.
7 *
8 * Licensed under the MIT License.
9 * See LICENSE file in the project root for full license information.
10 */
11
12#ifndef INCLUDES_APRA_MODELS_I2CERROR_H_
13#define INCLUDES_APRA_MODELS_I2CERROR_H_
14
15#include <models/GenericError.h>
16
17namespace apra
18{
19
24
26{
27public:
28 I2CError();
29 I2CError(std::string message);
30 I2CError(std::string message, I2C_ERROR_CODE code);
32 I2CError(std::string message, std::string debugMessage);
33 I2CError(std::string message, std::string debugMessage,
34 I2C_ERROR_CODE code);
35 I2CError(I2C_ERROR_CODE code, std::string debugMessage);
36 virtual ~I2CError();
39protected:
41};
42
43} /* namespace apra */
44
45#endif /* INCLUDES_APRA_MODELS_I2CERROR_H_ */
virtual ~I2CError()
Definition I2CError.cpp:69
I2C_ERROR_CODE m_code
Definition I2CError.h:40
I2CError & operator=(I2CError other)
Definition I2CError.cpp:55
I2C_ERROR_CODE getCode()
Definition I2CError.cpp:64
I2C_ERROR_CODE
Definition I2CError.h:21
@ READ_ERROR
Definition I2CError.h:22
@ WRITE_ERROR
Definition I2CError.h:22
@ OPEN_BUS_ERROR
Definition I2CError.h:22
@ NO_ERROR
Definition I2CError.h:22
@ BUS_UNOPENED
Definition I2CError.h:22