Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Generic Object Exchange Profile (GOEP) More...
Modules | |
GOEP transport L2CAP | |
GOEP transport RFCOMM | |
Data Structures | |
struct | bt_goep_transport_ops |
GOEP transport operations structure. More... | |
struct | bt_goep |
Enumerations | |
enum | bt_goep_transport_state { BT_GOEP_TRANSPORT_DISCONNECTED , BT_GOEP_TRANSPORT_CONNECTING , BT_GOEP_TRANSPORT_CONNECTED , BT_GOEP_TRANSPORT_DISCONNECTING } |
Life-span states of GOEP transport. More... | |
Functions | |
struct net_buf * | bt_goep_create_pdu (struct bt_goep *goep, struct net_buf_pool *pool) |
Allocate the buffer from given pool after reserving head room for GOEP. | |
Generic Object Exchange Profile (GOEP)
#include <include/zephyr/bluetooth/classic/goep.h>
Life-span states of GOEP transport.
Used only by internal APIs dealing with setting GOEP to proper transport state depending on operational context.
GOEP transport enters the BT_GOEP_TRANSPORT_CONNECTING state upon bt_goep_transport_l2cap_connect, bt_goep_transport_rfcomm_connect or upon returning from bt_goep_transport_rfcomm_server::accept and bt_goep_transport_l2cap_server::accept.
When GOEP transport leaves the BT_GOEP_TRANSPORT_CONNECTING state and enters the BT_GOEP_TRANSPORT_CONNECTED, bt_goep_transport_ops::connected is called.
When GOEP transport enters the BT_GOEP_TRANSPORT_DISCONNECTED from other states, bt_goep_transport_ops::disconnected is called.
struct net_buf * bt_goep_create_pdu | ( | struct bt_goep * | goep, |
struct net_buf_pool * | pool | ||
) |
#include <include/zephyr/bluetooth/classic/goep.h>
Allocate the buffer from given pool after reserving head room for GOEP.
For GOEP connection over RFCOMM, the reserved head room includes OBEX, RFCOMM, L2CAP and ACL headers. For GOEP connection over L2CAP, the reserved head room includes OBEX, L2CAP and ACL headers.
goep | GOEP object. |
pool | Which pool to take the buffer from. |