mbed Sensor node for Instrumented Booth over ETH.

Dependencies:   EthernetInterface-1 MaxbotixDriver Presence HTU21D_TEMP_HUMID_SENSOR_SAMPLE Resources SHARPIR mbed-rtos mbed-src WDT_K64F nsdl_lib

Fork of Trenton_Switch_LPC1768_ETH by Demo Team

Committer:
erigow01
Date:
Wed Dec 03 15:39:09 2014 +0000
Revision:
26:4cac6b346e4f
Child:
46:807e9cf63f4c
UPdated sensor integration.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
erigow01 26:4cac6b346e4f 1 // Support functions for the NSDL library
erigow01 26:4cac6b346e4f 2
erigow01 26:4cac6b346e4f 3 #ifndef NSDL_SUPPORT_H
erigow01 26:4cac6b346e4f 4 #define NSDL_SUPPORT_H
erigow01 26:4cac6b346e4f 5
erigow01 26:4cac6b346e4f 6 #include "mbed.h"
erigow01 26:4cac6b346e4f 7 #include <stdint.h>
erigow01 26:4cac6b346e4f 8 #include "sn_nsdl.h"
erigow01 26:4cac6b346e4f 9 #include "sn_coap_header.h"
erigow01 26:4cac6b346e4f 10 #include "sn_coap_protocol.h"
erigow01 26:4cac6b346e4f 11 #include "sn_nsdl_lib.h"
erigow01 26:4cac6b346e4f 12
erigow01 26:4cac6b346e4f 13 typedef uint8_t (*sn_grs_dyn_res_callback_t)(sn_coap_hdr_s *, sn_nsdl_addr_s *, sn_proto_info_s *);
erigow01 26:4cac6b346e4f 14
erigow01 26:4cac6b346e4f 15 extern "C" void *nsdl_alloc(uint16_t size);
erigow01 26:4cac6b346e4f 16 extern "C" void nsdl_free(void* ptr_to_free);
erigow01 26:4cac6b346e4f 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 26:4cac6b346e4f 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 26:4cac6b346e4f 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 26:4cac6b346e4f 20 void nsdl_clean_register_endpoint(sn_nsdl_ep_parameters_s **endpoint_structure);
erigow01 26:4cac6b346e4f 21 void nsdl_init();
erigow01 26:4cac6b346e4f 22 void nsdl_event_loop();
erigow01 26:4cac6b346e4f 23 void nsdl_run();
erigow01 26:4cac6b346e4f 24 void NSP_registration( );
erigow01 26:4cac6b346e4f 25 void nsdl_reg_update();
erigow01 26:4cac6b346e4f 26
erigow01 26:4cac6b346e4f 27 #endif // NSDL_SUPPORT_H