You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
605 B
C++
34 lines
605 B
C++
7 months ago
|
/*
|
||
|
* BaseComponent.cpp
|
||
|
*
|
||
|
* Author: Aleksey Gerasimenko
|
||
|
* gerasimenko.aleksey.n@gmail.com
|
||
|
*/
|
||
|
|
||
|
#include "SYSCTRL/BaseComponent.h"
|
||
|
|
||
|
namespace SYSCTRL
|
||
|
{
|
||
|
//CONSTRUCTOR
|
||
|
BaseComponent::BaseComponent():
|
||
|
m_mode(SYSCTRL::BaseComponent::UNDEFINED),
|
||
|
m_time_sample(-1.0)
|
||
|
//
|
||
|
{}//CONSTRUCTOR
|
||
|
//
|
||
|
#pragma CODE_SECTION("ramfuncs");
|
||
|
SYSCTRL::BaseComponent::mode_t BaseComponent::get_mode()
|
||
|
{
|
||
|
return m_mode;
|
||
|
//
|
||
|
}//
|
||
|
//
|
||
|
#pragma CODE_SECTION("ramfuncs");
|
||
|
bool BaseComponent::compare(SYSCTRL::BaseComponent::mode_t mode)
|
||
|
{
|
||
|
return m_mode == mode;
|
||
|
//
|
||
|
}//
|
||
|
//
|
||
|
} /* namespace SYSCTRL */
|