DUDS
Distributed Update of Data from Something
SmbusErrors.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2017 Jeff Jackowski
9  */
10 #include <duds/general/Errors.hpp>
11 
12 namespace duds { namespace hardware { namespace interface {
13 
20 struct SmbusError : virtual std::exception, virtual boost::exception { };
21 
27 
34 
39 
45 
50 
55 
65 
76 
80 typedef boost::error_info<struct Info_smbusdevaddr, int> SmbusDeviceAddr;
81 
82 } } }
A timeout occured while waiting to use the bus.
Definition: SmbusErrors.hpp:75
The attempted operation is not supported by the bus master.
Definition: SmbusErrors.hpp:49
A bad checksum value was found.
Definition: Errors.hpp:100
The device did not respond to its address.
Definition: SmbusErrors.hpp:44
An attempt was made to use a non-existent SMBus bus.
Definition: SmbusErrors.hpp:38
The device has failed to conform to the protocol.
Definition: SmbusErrors.hpp:54
The received message included a bad checksum and Packet Error Checking is in use. ...
Definition: SmbusErrors.hpp:26
boost::error_info< struct Info_smbusdevaddr, int > SmbusDeviceAddr
Provides the device (slave) address along with an error.
Definition: SmbusErrors.hpp:80
Base class for all errors specific to SMBus communications and used for very general errors...
Definition: SmbusErrors.hpp:20
A message of an invalid length was specified, or a message too big for a buffer was received...
Definition: SmbusErrors.hpp:33
General errors.