| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

LT_SMBusNoPec.cpp
Go to the documentation of this file.
1 /*!
2 LTC SMBus Support: API for a shared SMBus layere
3
4 @verbatim
5
6 This API is shared with Linduino and RTOS code. End users should code to this
7 API to enable use of the PMBus code without modifications.
8
9 @endverbatim
10
11
12 Copyright 2018(c) Analog Devices, Inc.
13
14 All rights reserved.
15
16 Redistribution and use in source and binary forms, with or without
17 modification, are permitted provided that the following conditions are met:
18 - Redistributions of source code must retain the above copyright
19 notice, this list of conditions and the following disclaimer.
20 - Redistributions in binary form must reproduce the above copyright
21 notice, this list of conditions and the following disclaimer in
22 the documentation and/or other materials provided with the
23 distribution.
24 - Neither the name of Analog Devices, Inc. nor the names of its
25 contributors may be used to endorse or promote products derived
26 from this software without specific prior written permission.
27 - The use of this software may or may not infringe the patent rights
28 of one or more patent holders. This license does not release you
29 from the requirement that you obtain separate licenses from these
30 patent holders to use this software.
31 - Use of the software either in source or binary form, must be run
32 on or directly connected to an Analog Devices Inc. component.
33
34 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
35 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
36 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
37 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
38 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
39 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
40 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
41 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
42 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44 */
45
46 //! @ingroup PMBus_SMBus
47 //! @{
48 //! @defgroup LT_SMBusNoPec LT_SMBusNoPec: non-PEC version of SMBus
49 //! @}
50
51 /*! @file
52 @ingroup LT_SMBusNoPec
53 Library Header File for LT_SMBusNoPec
54 */
55
56 #include <Arduino.h>
57 #include "LT_SMBusNoPec.h"
58
59 LT_SMBusNoPec::LT_SMBusNoPec() : LT_SMBusBase()
60 {
61 pec_enabled_ = false;
62 }
63
64 LT_SMBusNoPec::LT_SMBusNoPec(uint32_t speed) : LT_SMBusBase(speed)
65 {
66 pec_enabled_ = false;
67 }
LT_SMBus::pec_enabled_
bool pec_enabled_
Definition: LT_SMBus.h:64
LT_SMBusBase
Definition: LT_SMBusBase.h:60
LT_SMBusNoPec.h
LTC SMBus Support: Implementation for a shared SMBus layer.
LT_SMBusNoPec::LT_SMBusNoPec
LT_SMBusNoPec()
Definition: LT_SMBusNoPec.cpp:59