from LPC1768_LWM2M_Client

Dependencies:   F7_Ethernet mbed-rtos mbed nsdl_lib

Fork of rtos_basic by Mbed

Committer:
zef
Date:
Wed Dec 21 03:08:39 2016 +0000
Revision:
8:5bcb48a04554
from LPC1768_LWM2M_Client Project

Who changed what in which revision?

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