Nespresso coffee demo working on the Arch Pro
Dependencies: EthernetInterface mbed-rtos mbed nsdl rgb_sensor_buffer
Fork of mbed_nsdl by
nsdl_support.h@12:ad05fe84b4ff, 2015-03-20 (annotated)
- Committer:
- bridadan
- Date:
- Fri Mar 20 16:11:15 2015 +0000
- Revision:
- 12:ad05fe84b4ff
- Parent:
- 0:345864e9ee85
Working on Arch Pro
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GeofferyOmlette | 0:345864e9ee85 | 1 | // Support functions for the NSDL library |
GeofferyOmlette | 0:345864e9ee85 | 2 | |
GeofferyOmlette | 0:345864e9ee85 | 3 | #ifndef NSDL_SUPPORT_H |
GeofferyOmlette | 0:345864e9ee85 | 4 | #define NSDL_SUPPORT_H |
GeofferyOmlette | 0:345864e9ee85 | 5 | |
GeofferyOmlette | 0:345864e9ee85 | 6 | #include "mbed.h" |
GeofferyOmlette | 0:345864e9ee85 | 7 | #include <stdint.h> |
GeofferyOmlette | 0:345864e9ee85 | 8 | #include "sn_nsdl.h" |
GeofferyOmlette | 0:345864e9ee85 | 9 | #include "sn_coap_header.h" |
GeofferyOmlette | 0:345864e9ee85 | 10 | #include "sn_coap_protocol.h" |
GeofferyOmlette | 0:345864e9ee85 | 11 | #include "sn_nsdl_lib.h" |
GeofferyOmlette | 0:345864e9ee85 | 12 | |
GeofferyOmlette | 0:345864e9ee85 | 13 | typedef uint8_t (*sn_grs_dyn_res_callback_t)(sn_coap_hdr_s *, sn_nsdl_addr_s *, sn_proto_info_s *); |
GeofferyOmlette | 0:345864e9ee85 | 14 | |
GeofferyOmlette | 0:345864e9ee85 | 15 | extern "C" void *nsdl_alloc(uint16_t size); |
GeofferyOmlette | 0:345864e9ee85 | 16 | extern "C" void nsdl_free(void* ptr_to_free); |
GeofferyOmlette | 0:345864e9ee85 | 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); |
GeofferyOmlette | 0:345864e9ee85 | 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); |
GeofferyOmlette | 0:345864e9ee85 | 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); |
GeofferyOmlette | 0:345864e9ee85 | 20 | void nsdl_clean_register_endpoint(sn_nsdl_ep_parameters_s **endpoint_structure); |
GeofferyOmlette | 0:345864e9ee85 | 21 | void nsdl_init(); |
GeofferyOmlette | 0:345864e9ee85 | 22 | void nsdl_event_loop(); |
GeofferyOmlette | 0:345864e9ee85 | 23 | |
GeofferyOmlette | 0:345864e9ee85 | 24 | #endif // NSDL_SUPPORT_H |