MBED_DEMOS / Mbed 2 deprecated mbed_nsp_endpoint_ublox_ethernet

Dependencies:   C027 C12832 EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources

Committer:
ansond
Date:
Sat Mar 15 05:57:28 2014 +0000
Revision:
106:4f7323a01fb8
Parent:
105:d431fd03db64
Child:
142:e95256b893da
updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 0:dcced975fb52 1 /* Copyright C2013 Doug Anson, MIT License
ansond 0:dcced975fb52 2 *
ansond 0:dcced975fb52 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 0:dcced975fb52 4 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 0:dcced975fb52 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 0:dcced975fb52 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 0:dcced975fb52 7 * furnished to do so, subject to the following conditions:
ansond 0:dcced975fb52 8 *
ansond 0:dcced975fb52 9 * The above copyright notice and this permission notice shall be included in all copies or
ansond 0:dcced975fb52 10 * substantial portions of the Software.
ansond 0:dcced975fb52 11 *
ansond 0:dcced975fb52 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 0:dcced975fb52 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 0:dcced975fb52 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 0:dcced975fb52 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 0:dcced975fb52 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 0:dcced975fb52 17 */
ansond 0:dcced975fb52 18
ansond 0:dcced975fb52 19 #ifndef _NSP_RESOURCE_H
ansond 0:dcced975fb52 20 #define _NSP_RESOURCE_H
ansond 0:dcced975fb52 21
ansond 0:dcced975fb52 22 // base class
ansond 0:dcced975fb52 23 #include "Resource.h"
ansond 0:dcced975fb52 24
ansond 18:8f23034f1d6c 25 // NSDL Library Support
ansond 18:8f23034f1d6c 26 #include "nsdl_support.h"
ansond 18:8f23034f1d6c 27
ansond 0:dcced975fb52 28 class NSPResource : public Resource {
ansond 0:dcced975fb52 29 private:
ansond 18:8f23034f1d6c 30 void *m_resource_ptr;
ansond 35:89b9cf25a893 31 char m_nsp_name[RESOURCE_NAME_LEN+1];
ansond 105:d431fd03db64 32 char *m_interface;
ansond 105:d431fd03db64 33 int m_interface_len;
ansond 105:d431fd03db64 34 char *m_resource;
ansond 105:d431fd03db64 35 int m_resource_len;
ansond 106:4f7323a01fb8 36 int m_observable;
ansond 106:4f7323a01fb8 37 int m_registered;
ansond 18:8f23034f1d6c 38 sn_grs_resource_acl_e m_acl;
ansond 9:c2a0b8f2d7f6 39
ansond 0:dcced975fb52 40 public:
ansond 105:d431fd03db64 41 NSPResource(ErrorHandler *error_handler,char *ep_name,char *name,char *value,void *cb,void *cb_ptr,sn_grs_resource_acl_e acl,char *interface, char *resource);
ansond 0:dcced975fb52 42 virtual ~NSPResource();
ansond 0:dcced975fb52 43
ansond 0:dcced975fb52 44 virtual void plumb(char *endpoint_name,char *name);
ansond 19:a1fb67efb302 45 virtual void extract(char *name);
ansond 0:dcced975fb52 46 };
ansond 0:dcced975fb52 47
ansond 0:dcced975fb52 48 #endif // _NSP_RESOURCE_H