ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
nimble_transport_stubs.h
Go to the documentation of this file.
1
38
39#pragma once
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45#include <stdint.h>
46
47struct os_mbuf;
48
73void* ble_transport_alloc_evt(int discardable);
74
94struct os_mbuf* ble_transport_alloc_acl_from_ll(void);
95
114void ble_transport_free(void* buf);
115
138int ble_transport_to_hs_evt(void* buf);
139
161int ble_transport_to_hs_acl(struct os_mbuf* om);
162
186int os_mbuf_append(struct os_mbuf* om, const void* data, uint16_t len);
187
209int os_mbuf_free_chain(struct os_mbuf* om);
210
232uint16_t os_mbuf_len(const struct os_mbuf* om);
233
258int os_mbuf_copydata(const struct os_mbuf* om, int off, int len, void* dst);
259
283int ble_transport_to_ll_cmd(void* buf);
284
307int ble_transport_to_ll_acl(struct os_mbuf* om);
308
326void ble_transport_ll_init(void);
327
352int ble_transport_to_ll_cmd_impl(void* buf);
353
376int ble_transport_to_ll_acl_impl(struct os_mbuf* om);
377
400int ble_transport_to_ll_iso_impl(struct os_mbuf* om);
401
402#ifdef __cplusplus
403}
404#endif
int ble_transport_to_hs_acl(struct os_mbuf *om)
Push an ACL packet up to the host stack.
void ble_transport_ll_init(void)
Bring this port's controller-side transport up.
int ble_transport_to_ll_cmd_impl(void *buf)
Controller-side handler for an HCI command from the host.
int os_mbuf_free_chain(struct os_mbuf *om)
Free every mbuf in a chain.
void ble_transport_free(void *buf)
Release a buffer obtained from ble_transport_alloc_evt().
uint16_t os_mbuf_len(const struct os_mbuf *om)
Total payload length of an mbuf chain.
int ble_transport_to_ll_cmd(void *buf)
Host-to-controller HCI command entry point.
int ble_transport_to_ll_acl(struct os_mbuf *om)
Host-to-controller ACL entry point.
int os_mbuf_copydata(const struct os_mbuf *om, int off, int len, void *dst)
Copy a byte range out of an mbuf chain.
int os_mbuf_append(struct os_mbuf *om, const void *data, uint16_t len)
Append bytes to an mbuf chain (upstream os_mbuf.h).
int ble_transport_to_hs_evt(void *buf)
Push an HCI event up to the host stack.
int ble_transport_to_ll_iso_impl(struct os_mbuf *om)
Controller-side handler for an ISO packet from the host.
void * ble_transport_alloc_evt(int discardable)
Allocate an HCI event buffer (upstream ble_transport.h).
struct os_mbuf * ble_transport_alloc_acl_from_ll(void)
Allocate an ACL mbuf for the LL-to-host direction.
int ble_transport_to_ll_acl_impl(struct os_mbuf *om)
Controller-side handler for an ACL packet from the host.