Weather control switch for connected day. NXP LPC 1768 module. Ethernet connectivity.

Dependencies:   EthernetInterface mbed-rtos mbed nanoservice_client_1_12

Fork of Trenton_Switch_LPC1768_WIFLY by Demo Team

Committer:
erigow01
Date:
Wed Dec 03 09:11:47 2014 +0000
Revision:
26:3467812d5832
Parent:
17:8ca4a5801430
Rollback of accidental commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
erigow01 16:3fb612af0dc5 1 // Support functions for the NSDL library
erigow01 16:3fb612af0dc5 2
erigow01 16:3fb612af0dc5 3 #ifndef NSDL_SUPPORT_H
erigow01 16:3fb612af0dc5 4 #define NSDL_SUPPORT_H
erigow01 16:3fb612af0dc5 5
erigow01 16:3fb612af0dc5 6 #include "mbed.h"
erigow01 16:3fb612af0dc5 7 #include <stdint.h>
erigow01 16:3fb612af0dc5 8 #include "sn_nsdl.h"
erigow01 16:3fb612af0dc5 9 #include "sn_coap_header.h"
erigow01 16:3fb612af0dc5 10 #include "sn_coap_protocol.h"
erigow01 16:3fb612af0dc5 11 #include "sn_nsdl_lib.h"
erigow01 16:3fb612af0dc5 12
erigow01 16:3fb612af0dc5 13 typedef uint8_t (*sn_grs_dyn_res_callback_t)(sn_coap_hdr_s *, sn_nsdl_addr_s *, sn_proto_info_s *);
erigow01 16:3fb612af0dc5 14
erigow01 16:3fb612af0dc5 15 extern "C" void *nsdl_alloc(uint16_t size);
erigow01 16:3fb612af0dc5 16 extern "C" void nsdl_free(void* ptr_to_free);
erigow01 16:3fb612af0dc5 17 void nsdl_create_static_resource(sn_nsdl_resource_info_s *resource_structure, uint16_t pt_len, uint8_t *pt, uint16_t rpp_len, uint8_t *rpp_ptr, uint8_t *rsc, uint16_t rsc_len);
erigow01 16:3fb612af0dc5 18 void nsdl_create_dynamic_resource(sn_nsdl_resource_info_s *resource_structure, uint16_t pt_len, uint8_t *pt, uint16_t rpp_len, uint8_t *rpp_ptr, uint8_t is_observable, sn_grs_dyn_res_callback_t callback_ptr, int access_right);
erigow01 16:3fb612af0dc5 19 sn_nsdl_ep_parameters_s* nsdl_init_register_endpoint(sn_nsdl_ep_parameters_s *endpoint_structure, uint8_t* name, uint8_t* ypename_ptr, uint8_t *lifetime_ptr);
erigow01 16:3fb612af0dc5 20 void nsdl_clean_register_endpoint(sn_nsdl_ep_parameters_s **endpoint_structure);
erigow01 16:3fb612af0dc5 21 void nsdl_init();
erigow01 16:3fb612af0dc5 22
erigow01 16:3fb612af0dc5 23 #endif // NSDL_SUPPORT_H