Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
LT_SMBusPec.cpp
Go to the documentation of this file.
1
/*!
2
LTC SMBus Support: API for a shared SMBus layer
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_SMBusPec LT_SMBusPec: PEC version of SMBus
49
//! @}
50
51
/*! @file
52
@ingroup LT_SMBusPec
53
Library File for LT_SMBusPec
54
*/
55
56
#include <Arduino.h>
57
#include "
LT_SMBusPec.h
"
58
59
LT_SMBusPec::LT_SMBusPec
() :
LT_SMBusBase
()
60
{
61
pec_enabled_
=
true
;
62
}
63
64
LT_SMBusPec::LT_SMBusPec
(uint32_t speed) :
LT_SMBusBase
(speed)
65
{
66
pec_enabled_
=
true
;
67
}
LT_SMBusPec.h
LTC SMBus Support: Implementation for a shared SMBus layer.
LT_SMBus::pec_enabled_
bool pec_enabled_
Definition:
LT_SMBus.h:64
LT_SMBusBase
Definition:
LT_SMBusBase.h:60
LT_SMBusPec::LT_SMBusPec
LT_SMBusPec()
Definition:
LT_SMBusPec.cpp:59
LTSketchbook
libraries
LT_SMBUS
LT_SMBusPec.cpp
Generated on Thu Mar 19 2020 10:59:23 for Linduino by
1.8.13