NimBLE-Arduino 2.1.3
Loading...
Searching...
No Matches
transport_impl.h
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef H_NIMBLE_TRANSPORT_IMPL_
21#define H_NIMBLE_TRANSPORT_IMPL_
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include "nimble/porting/nimble/include/os/os_mempool.h"
28#include "nimble/porting/nimble/include/syscfg/syscfg.h"
29
30/* Init functions to be implemented for transport acting as HS/LL side */
31extern void ble_transport_ll_init(void);
32extern void ble_transport_hs_init(void);
33
34/* APIs to be implemented by HS/LL side of transports */
35extern int ble_transport_to_ll_cmd_impl(void *buf);
36extern int ble_transport_to_ll_acl_impl(struct os_mbuf *om);
37extern int ble_transport_to_hs_evt_impl(void *buf);
38extern int ble_transport_to_hs_acl_impl(struct os_mbuf *om);
39
40#if MYNEWT_VAL(BLE_TRANSPORT_INT_FLOW_CTL)
41/* To be implemented if transport supports internal flow control between cores */
42extern int ble_transport_int_flow_ctl_get(void);
43extern void ble_transport_int_flow_ctl_put(void);
44#endif
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* H_NIMBLE_TRANSPORT_IMPL_ */
Definition os_mbuf.h:86