a

Dependencies:   mbed mbed-rtos

Committer:
alexpirciu
Date:
Thu Mar 28 07:44:42 2019 +0000
Revision:
1:ceee5a608e7c
assa

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alexpirciu 1:ceee5a608e7c 1 /**
alexpirciu 1:ceee5a608e7c 2 ******************************************************************************
alexpirciu 1:ceee5a608e7c 3 * @file Echoer.hpp
alexpirciu 1:ceee5a608e7c 4 * @author RBRO/PJ-IU
alexpirciu 1:ceee5a608e7c 5 * @version V1.0.0
alexpirciu 1:ceee5a608e7c 6 * @date day-month-year
alexpirciu 1:ceee5a608e7c 7 * @brief This file contains the class definition for the serial echoer
alexpirciu 1:ceee5a608e7c 8 * functionality.
alexpirciu 1:ceee5a608e7c 9 ******************************************************************************
alexpirciu 1:ceee5a608e7c 10 */
alexpirciu 1:ceee5a608e7c 11
alexpirciu 1:ceee5a608e7c 12 /* Include guard */
alexpirciu 1:ceee5a608e7c 13 #ifndef ECHOER_HPP
alexpirciu 1:ceee5a608e7c 14 #define ECHOER_HPP
alexpirciu 1:ceee5a608e7c 15
alexpirciu 1:ceee5a608e7c 16 /* The mbed library */
alexpirciu 1:ceee5a608e7c 17 #include <mbed.h>
alexpirciu 1:ceee5a608e7c 18 #include <TaskManager/taskmanager.hpp>
alexpirciu 1:ceee5a608e7c 19
alexpirciu 1:ceee5a608e7c 20
alexpirciu 1:ceee5a608e7c 21 namespace examples{
alexpirciu 1:ceee5a608e7c 22 /**
alexpirciu 1:ceee5a608e7c 23 * @brief It is used for echoing messages over UART.
alexpirciu 1:ceee5a608e7c 24 *
alexpirciu 1:ceee5a608e7c 25 */
alexpirciu 1:ceee5a608e7c 26 class CEchoer : public task::CTask
alexpirciu 1:ceee5a608e7c 27 {
alexpirciu 1:ceee5a608e7c 28 public:
alexpirciu 1:ceee5a608e7c 29 /* Construnctor */
alexpirciu 1:ceee5a608e7c 30 CEchoer(uint32_t f_period, Serial& f_serialPort);
alexpirciu 1:ceee5a608e7c 31 private:
alexpirciu 1:ceee5a608e7c 32 /* Run method */
alexpirciu 1:ceee5a608e7c 33 virtual void _run();
alexpirciu 1:ceee5a608e7c 34
alexpirciu 1:ceee5a608e7c 35 /* Serial communication member*/
alexpirciu 1:ceee5a608e7c 36 Serial& m_serialPort;
alexpirciu 1:ceee5a608e7c 37 };
alexpirciu 1:ceee5a608e7c 38
alexpirciu 1:ceee5a608e7c 39 }; // namespace examples
alexpirciu 1:ceee5a608e7c 40
alexpirciu 1:ceee5a608e7c 41 #endif