MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/driver/netx/NetXDpmChannel.hh
2024-06-07 11:12:56 +03:00

37 lines
727 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* NetXDpmChannel.hh
*
* Created on: 15 Feb. 2022 г.
* Author: malyarenko
*/
#ifndef UMLIBRARY_DRIVER_NETX_NETXDPMCHANNEL_HH_
#define UMLIBRARY_DRIVER_NETX_NETXDPMCHANNEL_HH_
#include <utility>
#include <stdint.h>
#include "../../peripheral/ProtectedMemory.hh"
namespace driver {
namespace netx {
template<typename Layout>
class NetXDpmChannel {
public:
peripheral::protected_char * origin;
std::size_t size;
Layout * mapLayout();
};
} /* namespace netx */
} /* namespace driver */
template<typename Layout>
inline Layout* driver::netx::NetXDpmChannel<Layout>::mapLayout() {
return reinterpret_cast<Layout *>(this->origin);
}
#endif /* UMLIBRARY_DRIVER_NETX_NETXDPMCHANNEL_HH_ */