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  */
11 
12 namespace duds { namespace hardware { namespace interface {
13 
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 } } }
DigitalPinAccessBase & operator=(DigitalPinAccessBase &&old) noexcept
Allows moving access objects.
The base class for the digital pin access classes.
DigitalPort * dp
A pointer to the port object handling the pin(s).