Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Generic Object Exchange Profile (GOEP)

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_bufbt_goep_create_pdu (struct bt_goep *goep, struct net_buf_pool *pool)
 Allocate the buffer from given pool after reserving head room for GOEP.
 

Detailed Description

Generic Object Exchange Profile (GOEP)

Enumeration Type Documentation

◆ bt_goep_transport_state

#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.

Enumerator
BT_GOEP_TRANSPORT_DISCONNECTED 

GOEP disconnected.

BT_GOEP_TRANSPORT_CONNECTING 

GOEP in connecting state.

BT_GOEP_TRANSPORT_CONNECTED 

GOEP ready for upper layer traffic on it.

BT_GOEP_TRANSPORT_DISCONNECTING 

GOEP in disconnecting state.

Function Documentation

◆ bt_goep_create_pdu()

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.

Parameters
goepGOEP object.
poolWhich pool to take the buffer from.
Returns
New buffer.