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.
Dependencies: FXAS21002 FXOS8700Q
simple-mbed-cloud-client/mbed-cloud-client/mbed-client/source/include/nsdlaccesshelper.h@2:990c985a69ae, 2020-03-20 (annotated)
- Committer:
- vithyat
- Date:
- Fri Mar 20 20:15:18 2020 +0000
- Revision:
- 2:990c985a69ae
- Parent:
- 0:977e87915078
Update to work with P2Scan runtime
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| vithyat | 0:977e87915078 | 1 | /* |
| vithyat | 0:977e87915078 | 2 | * Copyright (c) 2015 ARM Limited. All rights reserved. |
| vithyat | 0:977e87915078 | 3 | * SPDX-License-Identifier: Apache-2.0 |
| vithyat | 0:977e87915078 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
| vithyat | 0:977e87915078 | 5 | * not use this file except in compliance with the License. |
| vithyat | 0:977e87915078 | 6 | * You may obtain a copy of the License at |
| vithyat | 0:977e87915078 | 7 | * |
| vithyat | 0:977e87915078 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| vithyat | 0:977e87915078 | 9 | * |
| vithyat | 0:977e87915078 | 10 | * Unless required by applicable law or agreed to in writing, software |
| vithyat | 0:977e87915078 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| vithyat | 0:977e87915078 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| vithyat | 0:977e87915078 | 13 | * See the License for the specific language governing permissions and |
| vithyat | 0:977e87915078 | 14 | * limitations under the License. |
| vithyat | 0:977e87915078 | 15 | */ |
| vithyat | 0:977e87915078 | 16 | #ifndef NSDL_ACCESS_HELPER_H |
| vithyat | 0:977e87915078 | 17 | #define NSDL_ACCESS_HELPER_H |
| vithyat | 0:977e87915078 | 18 | #include "mbed-client/m2mconnectionhandler.h" |
| vithyat | 0:977e87915078 | 19 | #include "include/m2mnsdlinterface.h" |
| vithyat | 0:977e87915078 | 20 | |
| vithyat | 0:977e87915078 | 21 | typedef Vector<M2MNsdlInterface *> M2MNsdlInterfaceList; |
| vithyat | 0:977e87915078 | 22 | |
| vithyat | 0:977e87915078 | 23 | #ifdef __cplusplus |
| vithyat | 0:977e87915078 | 24 | extern "C" { |
| vithyat | 0:977e87915078 | 25 | #endif |
| vithyat | 0:977e87915078 | 26 | |
| vithyat | 0:977e87915078 | 27 | uint8_t __nsdl_c_callback(struct nsdl_s * nsdl_handle, |
| vithyat | 0:977e87915078 | 28 | sn_coap_hdr_s *received_coap_ptr, |
| vithyat | 0:977e87915078 | 29 | sn_nsdl_addr_s *address, |
| vithyat | 0:977e87915078 | 30 | sn_nsdl_capab_e nsdl_capab); |
| vithyat | 0:977e87915078 | 31 | |
| vithyat | 0:977e87915078 | 32 | void *__nsdl_c_memory_alloc(uint16_t size); |
| vithyat | 0:977e87915078 | 33 | |
| vithyat | 0:977e87915078 | 34 | void __nsdl_c_memory_free(void *ptr); |
| vithyat | 0:977e87915078 | 35 | |
| vithyat | 0:977e87915078 | 36 | uint8_t __nsdl_c_send_to_server(struct nsdl_s * nsdl_handle, |
| vithyat | 0:977e87915078 | 37 | sn_nsdl_capab_e protocol, |
| vithyat | 0:977e87915078 | 38 | uint8_t *data_ptr, |
| vithyat | 0:977e87915078 | 39 | uint16_t data_len, |
| vithyat | 0:977e87915078 | 40 | sn_nsdl_addr_s *address_ptr); |
| vithyat | 0:977e87915078 | 41 | |
| vithyat | 0:977e87915078 | 42 | uint8_t __nsdl_c_received_from_server(struct nsdl_s * nsdl_handle, |
| vithyat | 0:977e87915078 | 43 | sn_coap_hdr_s *coap_header, |
| vithyat | 0:977e87915078 | 44 | sn_nsdl_addr_s *address_ptr); |
| vithyat | 0:977e87915078 | 45 | |
| vithyat | 0:977e87915078 | 46 | uint8_t __nsdl_c_auto_obs_token(struct nsdl_s *nsdl_handle, const char *path, uint8_t *token); |
| vithyat | 0:977e87915078 | 47 | |
| vithyat | 0:977e87915078 | 48 | void *__socket_malloc( void * context, size_t size); |
| vithyat | 0:977e87915078 | 49 | |
| vithyat | 0:977e87915078 | 50 | void __socket_free(void * context, void * ptr); |
| vithyat | 0:977e87915078 | 51 | |
| vithyat | 0:977e87915078 | 52 | M2MNsdlInterface* get_interface(struct nsdl_s* nsdl_handle); |
| vithyat | 0:977e87915078 | 53 | |
| vithyat | 0:977e87915078 | 54 | #ifdef __cplusplus |
| vithyat | 0:977e87915078 | 55 | } |
| vithyat | 0:977e87915078 | 56 | #endif |
| vithyat | 0:977e87915078 | 57 | |
| vithyat | 0:977e87915078 | 58 | #endif // NSDL_ACCESS_HELPER_H |