Alex Pirciu
/
BFMC
a
Embed:
(wiki syntax)
Show/hide line numbers
echoer.cpp
00001 /** 00002 ****************************************************************************** 00003 * @file Echoer.cpp 00004 * @author RBRO/PJ-IU 00005 * @version V1.0.0 00006 * @date day-month-year 00007 * @brief This file contains the class implementation for the serial echoer 00008 * functionality. 00009 ****************************************************************************** 00010 */ 00011 00012 #include <Examples/echoer.hpp> 00013 00014 namespace examples{ 00015 /** \brief Class constructor 00016 * 00017 * Constructor method 00018 * 00019 * \param f_period echoer execution period 00020 * \param f_serialPort Serial communication object 00021 */ 00022 CEchoer::CEchoer(uint32_t f_period, Serial& f_serialPort) 00023 : task::CTask(f_period) 00024 , m_serialPort(f_serialPort) 00025 { 00026 } 00027 00028 /** \brief Method called each f_period 00029 * 00030 */ 00031 void CEchoer::_run() 00032 { 00033 m_serialPort.printf(".\n\r"); 00034 } 00035 00036 }; // namespace examples
Generated on Tue Jul 12 2022 22:40:50 by 1.7.2