a

Dependencies:   mbed mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers blinker.hpp Source File

blinker.hpp

00001 /**
00002   ******************************************************************************
00003   * @file    Blinker.hpp
00004   * @author  RBRO/PJ-IU
00005   * @version V1.0.0
00006   * @date    day-month-year
00007   * @brief   This file contains the class definition for the blinker
00008   *          functionality.
00009   ******************************************************************************
00010  */
00011 
00012 /* Include guard */
00013 #ifndef BLINKER_HPP
00014 #define BLINKER_HPP
00015 
00016 /* The mbed library */
00017 #include <mbed.h>
00018 #include <TaskManager/taskmanager.hpp>
00019 
00020 
00021 namespace examples{
00022 
00023    /**
00024     * @brief It is used for toggling an LED.
00025     * 
00026     */
00027     class CBlinker : public task::CTask
00028     {
00029         public:
00030             /* Construnctor */
00031             CBlinker(uint32_t f_period, DigitalOut f_led);
00032         private:
00033             /* Run method */
00034             virtual void _run();
00035             /* Digital output line connected to a LED */
00036             DigitalOut m_led;    
00037     };
00038 }; // namespace examples
00039 
00040 #endif