Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Committer:
ansond
Date:
Thu Mar 13 17:36:08 2014 +0000
Revision:
92:330746c526b7
Parent:
91:8732d54328ae
Child:
192:54b758a8eaaa
updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 9:90fadae5489a 1 /* Copyright C2013 Doug Anson, MIT License
ansond 9:90fadae5489a 2 *
ansond 9:90fadae5489a 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 9:90fadae5489a 4 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 9:90fadae5489a 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 9:90fadae5489a 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 9:90fadae5489a 7 * furnished to do so, subject to the following conditions:
ansond 9:90fadae5489a 8 *
ansond 9:90fadae5489a 9 * The above copyright notice and this permission notice shall be included in all copies or
ansond 9:90fadae5489a 10 * substantial portions of the Software.
ansond 9:90fadae5489a 11 *
ansond 9:90fadae5489a 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 9:90fadae5489a 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 9:90fadae5489a 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 9:90fadae5489a 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 9:90fadae5489a 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 9:90fadae5489a 17 */
ansond 9:90fadae5489a 18
ansond 9:90fadae5489a 19 #ifndef _MBED_LIGHT_H_
ansond 9:90fadae5489a 20 #define _MBED_LIGHT_H_
ansond 9:90fadae5489a 21
ansond 9:90fadae5489a 22 // base class
ansond 9:90fadae5489a 23 #include "Light.h"
ansond 9:90fadae5489a 24
ansond 9:90fadae5489a 25 class MBEDLight : public Light {
ansond 9:90fadae5489a 26 public:
ansond 9:90fadae5489a 27 MBEDLight(ErrorHandler *error_handler,Transport *transports[NUM_TRANSPORTS],int instance,void *endpoint);
ansond 9:90fadae5489a 28 virtual ~MBEDLight();
ansond 9:90fadae5489a 29
ansond 92:330746c526b7 30 void initLight();
ansond 92:330746c526b7 31
ansond 9:90fadae5489a 32 virtual void on();
ansond 9:90fadae5489a 33 virtual void off();
ansond 9:90fadae5489a 34 virtual void dim(int value);
ansond 9:90fadae5489a 35 };
ansond 9:90fadae5489a 36
ansond 9:90fadae5489a 37 #endif // _MBED_LIGHT_H_