Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
nsdlaccesshelper.h
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef NSDL_ACCESS_HELPER_H 00017 #define NSDL_ACCESS_HELPER_H 00018 #include "mbed-client/m2mconnectionhandler.h" 00019 #include "include/m2mnsdlinterface.h" 00020 00021 typedef Vector<M2MNsdlInterface *> M2MNsdlInterfaceList; 00022 extern M2MNsdlInterfaceList __nsdl_interface_list; 00023 extern M2MConnectionHandler *__connection_handler; 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 uint8_t __nsdl_c_callback(struct nsdl_s * nsdl_handle, 00030 sn_coap_hdr_s *received_coap_ptr, 00031 sn_nsdl_addr_s *address, 00032 sn_nsdl_capab_e nsdl_capab); 00033 void *__nsdl_c_memory_alloc(uint16_t size); 00034 void __nsdl_c_memory_free(void *ptr); 00035 uint8_t __nsdl_c_send_to_server(struct nsdl_s * nsdl_handle, 00036 sn_nsdl_capab_e protocol, 00037 uint8_t *data_ptr, 00038 uint16_t data_len, 00039 sn_nsdl_addr_s *address_ptr); 00040 uint8_t __nsdl_c_received_from_server(struct nsdl_s * nsdl_handle, 00041 sn_coap_hdr_s *coap_header, 00042 sn_nsdl_addr_s *address_ptr); 00043 00044 void *__socket_malloc( void * context, size_t size); 00045 void __socket_free(void * context, void * ptr); 00046 00047 M2MNsdlInterface* get_interface(struct nsdl_s* nsdl_handle); 00048 00049 void __mutex_claim(); 00050 void __mutex_release(); 00051 00052 #ifdef __cplusplus 00053 } 00054 #endif 00055 00056 #endif // NSDL_ACCESS_HELPER_H
Generated on Tue Jul 12 2022 21:20:28 by
1.7.2