Download NHK English news podcast automatically. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem mbed-rtos mbed
Download NHK English news podcast automatically. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Diff: BlinkLed.h
- Revision:
- 2:0da3a4508b46
- Parent:
- 0:1855a008f28e
- Child:
- 3:07562878d3c3
--- a/BlinkLed.h Fri Aug 17 12:49:12 2012 +0000 +++ b/BlinkLed.h Sat Aug 18 16:46:40 2012 +0000 @@ -5,25 +5,55 @@ #include "mbed.h" #include "rtos.h" +/** LED which blinks automatically with RTOS +*/ class BlinkLed { public: + /** Constructor + */ BlinkLed(PinName pin, uint32_t millisecWait, const char* name = NULL); + /** Destructor + */ ~BlinkLed(); + /** Start biinking + */ void startBlink(); + /** Finish biinking + */ void finishBlink(); private: + /** Copy constructor + * Disable because it is only declaration + */ + BlinkLed(const BlinkLed&); + + /** Copy assignment operators + * Disable because it is only declaration + */ + BlinkLed& operator=(const BlinkLed&); + + /** Function for blinking + * This function will be bind to new thread + */ static void blink(void const *argument); + /** Target Led + */ PwmOut led; + + /** Waiting time for making the cycle to change brightness + */ uint32_t millisecWait; + /** Pointer to thread for blinking + */ Thread* thread; }; -#endif /* BLINKLED_H_ */ \ No newline at end of file +#endif /* BLINKLED_H_ */