DUDS
Distributed Update of Data from Something
DigitalPinAccessBase.cpp
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/hardware/interface/DigitalPinAccessBase.hpp
>
11
12
namespace
duds
{
namespace
hardware {
namespace
interface {
13
14
DigitalPinAccessBase
&
DigitalPinAccessBase::operator=
(
15
DigitalPinAccessBase
&&old
16
) noexcept {
17
// grab the port pointer
18
dp = old.
dp
;
19
// clear the port pointer from the source
20
old.dp =
nullptr
;
21
// grab the port specific data
22
portdata = old.portdata;
23
return
*
this
;
24
}
25
26
} } }
duds
Definition:
Constants.hpp:15
duds::hardware::interface::DigitalPinAccessBase::operator=
DigitalPinAccessBase & operator=(DigitalPinAccessBase &&old) noexcept
Allows moving access objects.
Definition:
DigitalPinAccessBase.cpp:14
duds::hardware::interface::DigitalPinAccessBase
The base class for the digital pin access classes.
Definition:
DigitalPinAccessBase.hpp:27
duds::hardware::interface::DigitalPinAccessBase::dp
DigitalPort * dp
A pointer to the port object handling the pin(s).
Definition:
DigitalPinAccessBase.hpp:61
DigitalPinAccessBase.hpp
duds
hardware
interface
DigitalPinAccessBase.cpp
Generated on Sat Mar 23 2024 19:12:03 for DUDS by
1.8.13