|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
Basic Imaging Profile (BIP) More...
Data Structures | |
| struct | bt_bip_transport_ops |
| BIP transport layer operations. More... | |
| struct | bt_bip_rfcomm_server |
| BIP RFCOMM server structure. More... | |
| struct | bt_bip_l2cap_server |
| BIP L2CAP server structure. More... | |
| struct | bt_bip |
| BIP instance structure. More... | |
| struct | bt_bip_server_cb |
| BIP server callback structure. More... | |
| struct | bt_bip_client_cb |
| BIP client callback structure. More... | |
| struct | bt_bip_server |
| BIP server instance structure. More... | |
| struct | bt_bip_client |
| BIP client instance structure. More... | |
Macros | |
| #define | BT_BIP_HDR_TYPE_GET_CAPS "x-bt/img-capabilities" |
| OBEX Type header for Get Capabilities operation. | |
| #define | BT_BIP_HDR_TYPE_GET_IMAGE_LIST "x-bt/img-listing" |
| OBEX Type header for Get Image List operation. | |
| #define | BT_BIP_HDR_TYPE_GET_IMAGE_PROPERTIES "x-bt/img-properties" |
| OBEX Type header for Get Image Properties operation. | |
| #define | BT_BIP_HDR_TYPE_GET_IMAGE "x-bt/img-img" |
| OBEX Type header for Get Image operation. | |
| #define | BT_BIP_HDR_TYPE_GET_LINKED_THUMBNAIL "x-bt/img-thm" |
| OBEX Type header for Get Linked Thumbnail operation. | |
| #define | BT_BIP_HDR_TYPE_GET_LINKED_ATTACHMENT "x-bt/img-attachment" |
| OBEX Type header for Get Linked Attachment operation. | |
| #define | BT_BIP_HDR_TYPE_GET_PARTIAL_IMAGE "x-bt/img-partial" |
| OBEX Type header for Get Partial Image operation. | |
| #define | BT_BIP_HDR_TYPE_GET_MONITORING_IMAGE "x-bt/img-monitoring" |
| OBEX Type header for Get Monitoring Image operation. | |
| #define | BT_BIP_HDR_TYPE_GET_STATUS "x-bt/img-status" |
| OBEX Type header for Get Status operation. | |
| #define | BT_BIP_HDR_TYPE_PUT_IMAGE "x-bt/img-img" |
| OBEX Type header for Put Image operation. | |
| #define | BT_BIP_HDR_TYPE_PUT_LINKED_THUMBNAIL "x-bt/img-thm" |
| OBEX Type header for Put Linked Thumbnail operation. | |
| #define | BT_BIP_HDR_TYPE_PUT_LINKED_ATTACHMENT "x-bt/img-attachment" |
| OBEX Type header for Put Linked Attachment operation. | |
| #define | BT_BIP_HDR_TYPE_REMOTE_DISPLAY "x-bt/img-display" |
| OBEX Type header for Remote Display operation. | |
| #define | BT_BIP_HDR_TYPE_DELETE_IMAGE "x-bt/img-img" |
| OBEX Type header for Delete Image operation. | |
| #define | BT_BIP_HDR_TYPE_START_PRINT "x-bt/img-print" |
| OBEX Type header for Start Print operation. | |
| #define | BT_BIP_HDR_TYPE_START_ARCHIVE "x-bt/img-archive" |
| OBEX Type header for Start Archive operation. | |
| #define | BT_BIP_HEADER_ID_IMG_DESC 0x71 |
| Img-Descriptor header ID. | |
| #define | BT_BIP_HEADER_ID_IMG_HANDLE 0x30 |
| Img-Handle header ID. | |
| #define | BT_BIP_PRIM_IMAGE_PUSH_CB(_connect, _disconnect, _get_caps, _put_image, _put_linked_thumbnail, _put_linked_attachment) |
| Primary Image Push server callback initializer. | |
| #define | BT_BIP_PRIM_IMAGE_PULL_CB(_connect, _disconnect, _get_caps, _get_image_list, _get_image_properties, _get_image, _get_linked_thumbnail, _get_linked_attachment, _delete_image) |
| Primary Image Pull server callback initializer. | |
| #define | BT_BIP_PRIM_IMAGE_PRINT_CB(_connect, _disconnect, _get_caps, _get_status, _start_print) |
| Primary Image Print server callback initializer. | |
| #define | BT_BIP_2ND_IMAGE_PRINT_CB(_connect, _disconnect, _get_partial_image) |
| Secondary Image Print server callback initializer. | |
| #define | BT_BIP_PRIM_AUTO_ARCHIVE_CB(_connect, _disconnect, _get_status, _start_archive) |
| Primary Auto Archive server callback initializer. | |
| #define | BT_BIP_2ND_AUTO_ARCHIVE_CB(_connect, _disconnect, _get_caps, _get_image_list, _get_image_properties, _get_image, _get_linked_thumbnail, _get_linked_attachment, _delete_image) |
| Secondary Auto Archive server callback initializer. | |
| #define | BT_BIP_PRIM_REMOTE_CAMERA_CB(_connect, _disconnect, _get_image_properties, _get_image, _get_linked_thumbnail, _get_monitoring_image) |
| Primary Remote Camera server callback initializer. | |
| #define | BT_BIP_PRIM_REMOTE_DISPLAY_CB(_connect, _disconnect, _get_caps, _get_image_list, _put_image, _put_linked_thumbnail, _remote_display) |
| Primary Remote Display server callback initializer. | |
| #define | BT_BIP_UUID_IMAGE_PUSH |
| BIP Image Push service UUID. | |
| #define | BT_BIP_UUID_IMAGE_PULL |
| BIP Image Pull service UUID. | |
| #define | BT_BIP_UUID_IMAGE_PRINT |
| BIP Advanced Image Printing service UUID. | |
| #define | BT_BIP_UUID_AUTO_ARCHIVE |
| BIP Auto Archive service UUID. | |
| #define | BT_BIP_UUID_REMOTE_CAMERA |
| BIP Remote Camera service UUID. | |
| #define | BT_BIP_UUID_REMOTE_DISPLAY |
| BIP Remote Display service UUID. | |
| #define | BT_BIP_UUID_REFERENCED_OBJ |
| BIP Referenced Objects service UUID. | |
| #define | BT_BIP_UUID_ARCHIVED_OBJ |
| BIP Archived Objects service UUID. | |
Functions | |
| int | bt_bip_rfcomm_register (struct bt_bip_rfcomm_server *server) |
| Register BIP RFCOMM server. | |
| int | bt_bip_rfcomm_connect (struct bt_conn *conn, struct bt_bip *bip, uint8_t channel) |
| Create transport connection over RFCOMM. | |
| int | bt_bip_rfcomm_disconnect (struct bt_bip *bip) |
| Disconnect BIP RFCOMM connection. | |
| int | bt_bip_l2cap_register (struct bt_bip_l2cap_server *server) |
| Register BIP L2CAP server. | |
| int | bt_bip_l2cap_connect (struct bt_conn *conn, struct bt_bip *bip, uint16_t psm) |
| Create transport connection over L2CAP. | |
| int | bt_bip_l2cap_disconnect (struct bt_bip *bip) |
| Disconnect BIP L2CAP connection. | |
| int | bt_bip_set_supported_capabilities (struct bt_bip *bip, uint8_t capabilities) |
| Set supported capabilities of BIP responder. | |
| int | bt_bip_set_supported_features (struct bt_bip *bip, uint16_t features) |
| Set supported features of BIP responder. | |
| int | bt_bip_set_supported_functions (struct bt_bip *bip, uint32_t functions) |
| Set supported functions of BIP responder. | |
| int | bt_bip_primary_server_register (struct bt_bip *bip, struct bt_bip_server *server, enum bt_bip_conn_type type, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb) |
| Register a primary BIP OBEX server. | |
| int | bt_bip_secondary_server_register (struct bt_bip *bip, struct bt_bip_server *server, enum bt_bip_conn_type type, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb, struct bt_bip_client *primary_client) |
| Register a secondary BIP OBEX server. | |
| static int | bt_bip_primary_image_push_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb) |
| Register Primary Image Push OBEX server. | |
| static int | bt_bip_primary_image_pull_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb) |
| Register Primary Image Pull OBEX server. | |
| static int | bt_bip_primary_advanced_image_printing_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb) |
| Register Primary Advanced Image Printing OBEX server. | |
| static int | bt_bip_primary_auto_archive_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb) |
| Register Primary Auto Archive OBEX server. | |
| static int | bt_bip_primary_remote_camera_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb) |
| Register Primary Remote Camera OBEX server. | |
| static int | bt_bip_primary_remote_display_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb) |
| Register Primary Remote Display OBEX server. | |
| static int | bt_bip_secondary_advanced_image_printing_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb, struct bt_bip_client *primary_client) |
| Register Secondary Advanced Image Printing OBEX server. | |
| static int | bt_bip_secondary_auto_archive_server_register (struct bt_bip *bip, struct bt_bip_server *server, const struct bt_uuid_128 *uuid, struct bt_bip_server_cb *cb, struct bt_bip_client *primary_client) |
| Register Secondary Auto Archive OBEX server. | |
| int | bt_bip_server_unregister (struct bt_bip_server *server) |
| Unregister a BIP OBEX server. | |
| int | bt_bip_primary_client_connect (struct bt_bip *bip, struct bt_bip_client *client, enum bt_bip_conn_type type, struct bt_bip_client_cb *cb, struct net_buf *buf) |
| Connect a primary BIP OBEX client. | |
| int | bt_bip_secondary_client_connect (struct bt_bip *bip, struct bt_bip_client *client, enum bt_bip_conn_type type, struct bt_bip_client_cb *cb, struct net_buf *buf, struct bt_bip_server *primary_server) |
| Connect a secondary BIP OBEX client. | |
| static int | bt_bip_primary_image_push_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf) |
| Connect Primary Image Push OBEX client. | |
| static int | bt_bip_primary_image_pull_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf) |
| Connect Primary Image Pull OBEX client. | |
| static int | bt_bip_primary_advanced_image_printing_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf) |
| Connect Primary Advanced Image Printing OBEX client. | |
| static int | bt_bip_primary_auto_archive_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf) |
| Connect Primary Auto Archive OBEX client. | |
| static int | bt_bip_primary_remote_camera_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf) |
| Connect Primary Remote Camera OBEX client. | |
| static int | bt_bip_primary_remote_display_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf) |
| Connect Primary Remote Display OBEX client. | |
| static int | bt_bip_secondary_advanced_image_printing_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf, struct bt_bip_server *primary_server) |
| Connect Secondary Advanced Image Printing OBEX client. | |
| static int | bt_bip_secondary_auto_archive_client_connect (struct bt_bip *bip, struct bt_bip_client *client, struct bt_bip_client_cb *cb, struct net_buf *buf, struct bt_bip_server *primary_server) |
| Connect Secondary Auto Archive OBEX client. | |
| int | bt_bip_connect_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send OBEX Connect response. | |
| int | bt_bip_disconnect (struct bt_bip_client *client, struct net_buf *buf) |
| Send OBEX Disconnect request. | |
| int | bt_bip_disconnect_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send OBEX Disconnect response. | |
| int | bt_bip_abort (struct bt_bip_client *client, struct net_buf *buf) |
| Send OBEX Abort request. | |
| int | bt_bip_abort_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send OBEX Abort response. | |
| int | bt_bip_get_capabilities (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Capabilities request. | |
| int | bt_bip_get_capabilities_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Capabilities response. | |
| int | bt_bip_get_image_list (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Image List request. | |
| int | bt_bip_get_image_list_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Image List response. | |
| int | bt_bip_get_image_properties (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Image Properties request. | |
| int | bt_bip_get_image_properties_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Image Properties response. | |
| int | bt_bip_get_image (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Image request. | |
| int | bt_bip_get_image_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Image response. | |
| int | bt_bip_get_linked_thumbnail (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Linked Thumbnail request. | |
| int | bt_bip_get_linked_thumbnail_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Linked Thumbnail response. | |
| int | bt_bip_get_linked_attachment (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Linked Attachment request. | |
| int | bt_bip_get_linked_attachment_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Linked Attachment response. | |
| int | bt_bip_get_partial_image (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Partial Image request. | |
| int | bt_bip_get_partial_image_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Partial Image response. | |
| int | bt_bip_get_monitoring_image (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Monitoring Image request. | |
| int | bt_bip_get_monitoring_image_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Monitoring Image response. | |
| int | bt_bip_get_status (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Get Status request. | |
| int | bt_bip_get_status_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Get Status response. | |
| int | bt_bip_put_image (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Put Image request. | |
| int | bt_bip_put_image_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Put Image response. | |
| int | bt_bip_put_linked_thumbnail (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Put Linked Thumbnail request. | |
| int | bt_bip_put_linked_thumbnail_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Put Linked Thumbnail response. | |
| int | bt_bip_put_linked_attachment (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Put Linked Attachment request. | |
| int | bt_bip_put_linked_attachment_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Put Linked Attachment response. | |
| int | bt_bip_remote_display (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Remote Display request. | |
| int | bt_bip_remote_display_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Remote Display response. | |
| int | bt_bip_delete_image (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Delete Image request. | |
| int | bt_bip_delete_image_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Delete Image response. | |
| int | bt_bip_start_print (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Start Print request. | |
| int | bt_bip_start_print_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Start Print response. | |
| int | bt_bip_start_archive (struct bt_bip_client *client, bool final, struct net_buf *buf) |
| Send Start Archive request. | |
| int | bt_bip_start_archive_rsp (struct bt_bip_server *server, uint8_t rsp_code, struct net_buf *buf) |
| Send Start Archive response. | |
| int | bt_bip_add_header_image_desc (struct net_buf *buf, uint16_t len, const uint8_t *desc) |
| Add Image Descriptor header to buffer. | |
| int | bt_bip_add_header_image_handle (struct net_buf *buf, uint16_t len, const uint8_t *handle) |
| Add Image Handle header to buffer. | |
Basic Imaging Profile (BIP)
| #define BT_BIP_2ND_AUTO_ARCHIVE_CB | ( | _connect, | |
| _disconnect, | |||
| _get_caps, | |||
| _get_image_list, | |||
| _get_image_properties, | |||
| _get_image, | |||
| _get_linked_thumbnail, | |||
| _get_linked_attachment, | |||
| _delete_image ) |
#include <zephyr/bluetooth/classic/bip.h>
Secondary Auto Archive server callback initializer.
Helper macro to initialize callbacks for Secondary Auto Archive server
| #define BT_BIP_2ND_IMAGE_PRINT_CB | ( | _connect, | |
| _disconnect, | |||
| _get_partial_image ) |
#include <zephyr/bluetooth/classic/bip.h>
Secondary Image Print server callback initializer.
Helper macro to initialize callbacks for Secondary Image Print server
| #define BT_BIP_HDR_TYPE_DELETE_IMAGE "x-bt/img-img" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Delete Image operation.
| #define BT_BIP_HDR_TYPE_GET_CAPS "x-bt/img-capabilities" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Capabilities operation.
| #define BT_BIP_HDR_TYPE_GET_IMAGE "x-bt/img-img" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Image operation.
| #define BT_BIP_HDR_TYPE_GET_IMAGE_LIST "x-bt/img-listing" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Image List operation.
| #define BT_BIP_HDR_TYPE_GET_IMAGE_PROPERTIES "x-bt/img-properties" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Image Properties operation.
| #define BT_BIP_HDR_TYPE_GET_LINKED_ATTACHMENT "x-bt/img-attachment" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Linked Attachment operation.
| #define BT_BIP_HDR_TYPE_GET_LINKED_THUMBNAIL "x-bt/img-thm" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Linked Thumbnail operation.
| #define BT_BIP_HDR_TYPE_GET_MONITORING_IMAGE "x-bt/img-monitoring" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Monitoring Image operation.
| #define BT_BIP_HDR_TYPE_GET_PARTIAL_IMAGE "x-bt/img-partial" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Partial Image operation.
| #define BT_BIP_HDR_TYPE_GET_STATUS "x-bt/img-status" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Get Status operation.
| #define BT_BIP_HDR_TYPE_PUT_IMAGE "x-bt/img-img" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Put Image operation.
| #define BT_BIP_HDR_TYPE_PUT_LINKED_ATTACHMENT "x-bt/img-attachment" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Put Linked Attachment operation.
| #define BT_BIP_HDR_TYPE_PUT_LINKED_THUMBNAIL "x-bt/img-thm" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Put Linked Thumbnail operation.
| #define BT_BIP_HDR_TYPE_REMOTE_DISPLAY "x-bt/img-display" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Remote Display operation.
| #define BT_BIP_HDR_TYPE_START_ARCHIVE "x-bt/img-archive" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Start Archive operation.
| #define BT_BIP_HDR_TYPE_START_PRINT "x-bt/img-print" |
#include <zephyr/bluetooth/classic/bip.h>
OBEX Type header for Start Print operation.
| #define BT_BIP_HEADER_ID_IMG_DESC 0x71 |
#include <zephyr/bluetooth/classic/bip.h>
Img-Descriptor header ID.
Byte sequence, length prefixed with a two-byte unsigned integer
| #define BT_BIP_HEADER_ID_IMG_HANDLE 0x30 |
#include <zephyr/bluetooth/classic/bip.h>
Img-Handle header ID.
Null terminated, UTF-16 encoded Unicode text length prefixed with a two-byte unsigned integer
| #define BT_BIP_PRIM_AUTO_ARCHIVE_CB | ( | _connect, | |
| _disconnect, | |||
| _get_status, | |||
| _start_archive ) |
#include <zephyr/bluetooth/classic/bip.h>
Primary Auto Archive server callback initializer.
Helper macro to initialize callbacks for Primary Auto Archive server
| #define BT_BIP_PRIM_IMAGE_PRINT_CB | ( | _connect, | |
| _disconnect, | |||
| _get_caps, | |||
| _get_status, | |||
| _start_print ) |
#include <zephyr/bluetooth/classic/bip.h>
Primary Image Print server callback initializer.
Helper macro to initialize callbacks for Primary Image Print server
| #define BT_BIP_PRIM_IMAGE_PULL_CB | ( | _connect, | |
| _disconnect, | |||
| _get_caps, | |||
| _get_image_list, | |||
| _get_image_properties, | |||
| _get_image, | |||
| _get_linked_thumbnail, | |||
| _get_linked_attachment, | |||
| _delete_image ) |
#include <zephyr/bluetooth/classic/bip.h>
Primary Image Pull server callback initializer.
Helper macro to initialize callbacks for Primary Image Pull server
| #define BT_BIP_PRIM_IMAGE_PUSH_CB | ( | _connect, | |
| _disconnect, | |||
| _get_caps, | |||
| _put_image, | |||
| _put_linked_thumbnail, | |||
| _put_linked_attachment ) |
#include <zephyr/bluetooth/classic/bip.h>
Primary Image Push server callback initializer.
Helper macro to initialize callbacks for Primary Image Push server
| #define BT_BIP_PRIM_REMOTE_CAMERA_CB | ( | _connect, | |
| _disconnect, | |||
| _get_image_properties, | |||
| _get_image, | |||
| _get_linked_thumbnail, | |||
| _get_monitoring_image ) |
#include <zephyr/bluetooth/classic/bip.h>
Primary Remote Camera server callback initializer.
Helper macro to initialize callbacks for Primary Remote Camera server
| #define BT_BIP_PRIM_REMOTE_DISPLAY_CB | ( | _connect, | |
| _disconnect, | |||
| _get_caps, | |||
| _get_image_list, | |||
| _put_image, | |||
| _put_linked_thumbnail, | |||
| _remote_display ) |
#include <zephyr/bluetooth/classic/bip.h>
Primary Remote Display server callback initializer.
Helper macro to initialize callbacks for Primary Remote Display server
| #define BT_BIP_UUID_ARCHIVED_OBJ |
#include <zephyr/bluetooth/classic/bip.h>
BIP Archived Objects service UUID.
| #define BT_BIP_UUID_AUTO_ARCHIVE |
#include <zephyr/bluetooth/classic/bip.h>
BIP Auto Archive service UUID.
| #define BT_BIP_UUID_IMAGE_PRINT |
#include <zephyr/bluetooth/classic/bip.h>
BIP Advanced Image Printing service UUID.
| #define BT_BIP_UUID_IMAGE_PULL |
#include <zephyr/bluetooth/classic/bip.h>
BIP Image Pull service UUID.
| #define BT_BIP_UUID_IMAGE_PUSH |
#include <zephyr/bluetooth/classic/bip.h>
BIP Image Push service UUID.
| #define BT_BIP_UUID_REFERENCED_OBJ |
#include <zephyr/bluetooth/classic/bip.h>
BIP Referenced Objects service UUID.
| #define BT_BIP_UUID_REMOTE_CAMERA |
#include <zephyr/bluetooth/classic/bip.h>
BIP Remote Camera service UUID.
| #define BT_BIP_UUID_REMOTE_DISPLAY |
#include <zephyr/bluetooth/classic/bip.h>
BIP Remote Display service UUID.
#include <zephyr/bluetooth/classic/bip.h>
BIP Application Parameter Tag IDs.
These tag IDs are used in OBEX application parameter headers for various BIP operations.
| enum bt_bip_conn_type |
#include <zephyr/bluetooth/classic/bip.h>
BIP OBEX connection types.
Defines the different types of BIP connections as per BIP specification
| enum bt_bip_role |
#include <zephyr/bluetooth/classic/bip.h>
BIP role types.
Defines the role of the device in BIP connection
| Enumerator | |
|---|---|
| BT_BIP_ROLE_UNKNOWN | Unknown role. |
| BT_BIP_ROLE_INITIATOR | Connection initiator. |
| BT_BIP_ROLE_RESPONDER | Connection responder. |
| enum bt_bip_state |
#include <zephyr/bluetooth/classic/bip.h>
BIP connection state.
Defines the state of a BIP OBEX connection
#include <zephyr/bluetooth/classic/bip.h>
BIP supported capabilities.
Defines the supported capabilities of the BIP device (responder). These capabilities indicate the primary BIP services that the device supports. Multiple capabilities can be combined using bitwise OR operations.
| Enumerator | |
|---|---|
| BT_BIP_SUPP_CAP_GENERIC_IMAGE | Generic imaging. |
| BT_BIP_SUPP_CAP_CAPTURING | Capturing. |
| BT_BIP_SUPP_CAP_PRINTING | Printing. |
| BT_BIP_SUPP_CAP_DISPLAYING | Displaying. |
#include <zephyr/bluetooth/classic/bip.h>
BIP supported features.
Defines the supported features of the BIP device (responder). These features indicate the primary BIP services that the device supports. Multiple features can be combined using bitwise OR operations.
#include <zephyr/bluetooth/classic/bip.h>
BIP supported functions.
Defines the supported functions of the BIP device (responder). These functions indicate the specific BIP operations that the device can perform. Multiple functions can be combined using bitwise OR operations.
#include <zephyr/bluetooth/classic/bip.h>
BIP transport state.
Defines the state of the underlying transport connection
| int bt_bip_abort | ( | struct bt_bip_client * | client, |
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send OBEX Abort request.
Initiates an OBEX Abort from the client side to cancel ongoing operation.
| client | BIP client instance |
| buf | Request data buffer |
| int bt_bip_abort_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send OBEX Abort response.
Sends a response to an OBEX Abort request received by the server.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer |
#include <zephyr/bluetooth/classic/bip.h>
Add Image Descriptor header to buffer.
Adds an Image Descriptor header to the OBEX packet buffer. The descriptor contains format and encoding information for the image.
| buf | Buffer to add header to |
| len | Length of descriptor data |
| desc | Pointer to descriptor data |
#include <zephyr/bluetooth/classic/bip.h>
Add Image Handle header to buffer.
Adds an Image Handle header to the OBEX packet buffer. The handle is a UTF-16 encoded string that uniquely identifies an image.
| buf | Buffer to add header to |
| len | Length of handle data in bytes |
| handle | Pointer to UTF-16 encoded handle data |
| int bt_bip_connect_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send OBEX Connect response.
Sends a response to an OBEX Connect request received by the server.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer |
| int bt_bip_delete_image | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Delete Image request.
Requests deletion of a specific image on the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, and BT_BIP_HEADER_ID_IMG_HANDLE. And the value of type header is BT_BIP_HDR_TYPE_DELETE_IMAGE.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (should contain image handle) |
| int bt_bip_delete_image_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Delete Image response.
Responds to a Delete Image request.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer |
| int bt_bip_disconnect | ( | struct bt_bip_client * | client, |
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send OBEX Disconnect request.
Initiates an OBEX Disconnect from the client side.
| client | BIP client instance |
| buf | Request data buffer |
| int bt_bip_disconnect_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send OBEX Disconnect response.
Sends a response to an OBEX Disconnect request received by the server.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer |
| int bt_bip_get_capabilities | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Capabilities request.
Requests the imaging capabilities from the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID and BT_OBEX_HEADER_ID_TYPE. And the value of type header is BT_BIP_HDR_TYPE_GET_CAPS.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer |
| int bt_bip_get_capabilities_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Capabilities response.
Responds to a Get Capabilities request with the server's capabilities. The following OBEX headers should be included for the first response, BT_OBEX_HEADER_ID_BODY or BT_OBEX_HEADER_ID_END_BODY.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (capabilities document) |
| int bt_bip_get_image | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Image request.
Requests an image from the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, BT_BIP_HEADER_ID_IMG_HANDLE and BT_BIP_HEADER_ID_IMG_DESC. And the value of type header is BT_BIP_HDR_TYPE_GET_IMAGE.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (should contain image handle and descriptor) |
| int bt_bip_get_image_list | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Image List request.
Requests a list of available images from the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, BT_OBEX_HEADER_ID_APP_PARAM, and BT_BIP_HEADER_ID_IMG_DESC. And the value of type header is BT_BIP_HDR_TYPE_GET_IMAGE_LIST. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_RETURNED_HANDLES, BT_BIP_APPL_PARAM_TAG_ID_LIST_START_OFFSET, and BT_BIP_APPL_PARAM_TAG_ID_LATEST_CAPTURED_IMAGES.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer |
| int bt_bip_get_image_list_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Image List response.
Responds to a Get Image List request with the available image list. The following OBEX headers should be included for the first response, BT_OBEX_HEADER_ID_APP_PARAM and BT_BIP_HEADER_ID_IMG_DESC. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_RETURNED_HANDLES.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (image list document) |
| int bt_bip_get_image_properties | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Image Properties request.
Requests properties of a specific image from the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, and BT_BIP_HEADER_ID_IMG_HANDLE. And the value of type header is BT_BIP_HDR_TYPE_GET_IMAGE_PROPERTIES.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (should contain image handle) |
| int bt_bip_get_image_properties_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Image Properties response.
Responds to a Get Image Properties request with the image properties. The following OBEX headers should be included for the first response, BT_OBEX_HEADER_ID_APP_PARAM, and BT_OBEX_HEADER_ID_BODY, or BT_OBEX_HEADER_ID_END_BODY. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_RETURNED_HANDLES.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (image properties document) |
| int bt_bip_get_image_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Image response.
Responds to a Get Image request with the requested image data. The following OBEX headers should be included for the first response, BT_OBEX_HEADER_ID_LEN, and BT_OBEX_HEADER_ID_BODY, or BT_OBEX_HEADER_ID_END_BODY.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (image data) |
| int bt_bip_get_linked_attachment | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Linked Attachment request.
Requests an attachment linked to a specific image. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, BT_BIP_HEADER_ID_IMG_HANDLE, and BT_OBEX_HEADER_ID_NAME. And the value of type header is BT_BIP_HDR_TYPE_GET_LINKED_ATTACHMENT.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (should contain image handle) |
| int bt_bip_get_linked_attachment_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Linked Attachment response.
Responds to a Get Linked Attachment request with the attachment data. The following OBEX headers should be included for the first response, BT_OBEX_HEADER_ID_BODY, or BT_OBEX_HEADER_ID_END_BODY.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (attachment data) |
| int bt_bip_get_linked_thumbnail | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Linked Thumbnail request.
Requests a thumbnail linked to a specific image. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, and BT_BIP_HEADER_ID_IMG_HANDLE. And the value of type header is BT_BIP_HDR_TYPE_GET_LINKED_THUMBNAIL.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (should contain image handle) |
| int bt_bip_get_linked_thumbnail_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Linked Thumbnail response.
Responds to a Get Linked Thumbnail request with the thumbnail data. The following OBEX headers should be included for the first response, BT_OBEX_HEADER_ID_BODY, or BT_OBEX_HEADER_ID_END_BODY.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (thumbnail data) |
| int bt_bip_get_monitoring_image | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Monitoring Image request.
Requests a monitoring image from a remote camera. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, and BT_OBEX_HEADER_ID_APP_PARAM. And the value of type header is BT_BIP_HDR_TYPE_GET_PARTIAL_IMAGE. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_STORE_FLAG.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer |
| int bt_bip_get_monitoring_image_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Monitoring Image response.
Responds to a Get Monitoring Image request with the monitoring image. The following OBEX headers should be included for the first response, BT_BIP_HEADER_ID_IMG_HANDLE and BT_OBEX_HEADER_ID_BODY, or BT_OBEX_HEADER_ID_END_BODY.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (monitoring image data) |
| int bt_bip_get_partial_image | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Partial Image request.
Requests a partial image (portion of an image) from the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, BT_OBEX_HEADER_ID_NAME, and BT_OBEX_HEADER_ID_APP_PARAM. And the value of type header is BT_BIP_HDR_TYPE_GET_PARTIAL_IMAGE. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_PARTIAL_FILE_LEN, and BT_BIP_APPL_PARAM_TAG_ID_PARTIAL_FILE_START_OFFSET.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (should contain image handle and range info) |
| int bt_bip_get_partial_image_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Partial Image response.
Responds to a Get Partial Image request with the requested image portion. The following OBEX headers should be included for the first response, BT_OBEX_HEADER_ID_BODY, or BT_OBEX_HEADER_ID_END_BODY.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (partial image data) |
| int bt_bip_get_status | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Status request.
Requests status information from the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, and BT_OBEX_HEADER_ID_TYPE. And the value of type header is BT_BIP_HDR_TYPE_GET_STATUS.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer |
| int bt_bip_get_status_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Get Status response.
Responds to a Get Status request with status information.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (status document) |
#include <zephyr/bluetooth/classic/bip.h>
Create transport connection over L2CAP.
| conn | ACL conn object |
| bip | BIP instance |
| psm | L2CAP PSM (Protocol Service Multiplexer) |
| int bt_bip_l2cap_disconnect | ( | struct bt_bip * | bip | ) |
#include <zephyr/bluetooth/classic/bip.h>
Disconnect BIP L2CAP connection.
| bip | BIP instance |
| int bt_bip_l2cap_register | ( | struct bt_bip_l2cap_server * | server | ) |
#include <zephyr/bluetooth/classic/bip.h>
Register BIP L2CAP server.
| server | L2CAP server to register |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Primary Advanced Image Printing OBEX client.
Convenience function to connect a Primary Advanced Image Printing client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Primary Advanced Image Printing OBEX server.
Convenience function to register a Primary Advanced Image Printing server.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_IMAGE_PRINT) |
| cb | Server callback functions |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Primary Auto Archive OBEX client.
Convenience function to connect a Primary Auto Archive client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Primary Auto Archive OBEX server.
Convenience function to register a Primary Auto Archive server.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_AUTO_ARCHIVE) |
| cb | Server callback functions |
| int bt_bip_primary_client_connect | ( | struct bt_bip * | bip, |
| struct bt_bip_client * | client, | ||
| enum bt_bip_conn_type | type, | ||
| struct bt_bip_client_cb * | cb, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Connect a primary BIP OBEX client.
Initiates a primary BIP client connection for the specified service type BT_BIP_PRIM_CONN_TYPE_* of bt_bip_conn_type.
| bip | BIP instance |
| client | BIP client structure |
| type | Primary connection type |
| cb | Client callback functions |
| buf | Connection request data |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Primary Image Pull OBEX client.
Convenience function to connect a Primary Image Pull client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Primary Image Pull OBEX server.
Convenience function to register a Primary Image Pull server.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_IMAGE_PULL) |
| cb | Server callback functions |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Primary Image Push OBEX client.
Convenience function to connect a Primary Image Push client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Primary Image Push OBEX server.
Convenience function to register a Primary Image Push server.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_IMAGE_PUSH) |
| cb | Server callback functions |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Primary Remote Camera OBEX client.
Convenience function to connect a Primary Remote Camera client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Primary Remote Camera OBEX server.
Convenience function to register a Primary Remote Camera server.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_REMOTE_CAMERA) |
| cb | Server callback functions |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Primary Remote Display OBEX client.
Convenience function to connect a Primary Remote Display client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Primary Remote Display OBEX server.
Convenience function to register a Primary Remote Display server.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_REMOTE_DISPLAY) |
| cb | Server callback functions |
| int bt_bip_primary_server_register | ( | struct bt_bip * | bip, |
| struct bt_bip_server * | server, | ||
| enum bt_bip_conn_type | type, | ||
| const struct bt_uuid_128 * | uuid, | ||
| struct bt_bip_server_cb * | cb ) |
#include <zephyr/bluetooth/classic/bip.h>
Register a primary BIP OBEX server.
Registers a primary BIP server for the specified connection type and service UUID. Primary servers handle the main BIP operations for their respective service types.
| bip | BIP instance |
| server | BIP server structure to register |
| type | Primary connection type (IMAGE_PUSH, IMAGE_PULL, etc.) |
| uuid | Service UUID for the server |
| cb | Callback functions for handling server operations |
| int bt_bip_put_image | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Put Image request.
Sends an image to the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, BT_OBEX_HEADER_ID_NAME, and BT_BIP_HEADER_ID_IMG_DESC. And the value of type header is BT_BIP_HDR_TYPE_PUT_IMAGE.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (image data and metadata) |
| int bt_bip_put_image_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Put Image response.
Responds to a Put Image request. The following OBEX headers should be included for the first response, BT_BIP_HEADER_ID_IMG_HANDLE.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (may contain image handle) |
| int bt_bip_put_linked_attachment | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Put Linked Attachment request.
Sends an attachment linked to a specific image. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, BT_BIP_HEADER_ID_IMG_HANDLE, and BT_BIP_HEADER_ID_IMG_DESC. And the value of type header is BT_BIP_HDR_TYPE_PUT_LINKED_ATTACHMENT.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (attachment data and image handle) |
| int bt_bip_put_linked_attachment_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Put Linked Attachment response.
Responds to a Put Linked Attachment request.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer |
| int bt_bip_put_linked_thumbnail | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Put Linked Thumbnail request.
Sends a thumbnail linked to a specific image. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, and BT_BIP_HEADER_ID_IMG_HANDLE. And the value of type header is BT_BIP_HDR_TYPE_PUT_LINKED_THUMBNAIL.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (thumbnail data and image handle) |
| int bt_bip_put_linked_thumbnail_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Put Linked Thumbnail response.
Responds to a Put Linked Thumbnail request.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer |
| int bt_bip_remote_display | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Remote Display request.
Sends a remote display command to the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, BT_BIP_HEADER_ID_IMG_HANDLE, and BT_OBEX_HEADER_ID_APP_PARAM. And the value of type header is BT_BIP_HDR_TYPE_REMOTE_DISPLAY. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_REMOTE_DISPLAY.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (display command) |
| int bt_bip_remote_display_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Remote Display response.
Responds to a Remote Display request. The following OBEX headers should be included for the first response, BT_BIP_HEADER_ID_IMG_HANDLE.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer |
#include <zephyr/bluetooth/classic/bip.h>
Create transport connection over RFCOMM.
| conn | ACL conn object |
| bip | BIP instance |
| channel | RFCOMM channel number |
| int bt_bip_rfcomm_disconnect | ( | struct bt_bip * | bip | ) |
#include <zephyr/bluetooth/classic/bip.h>
Disconnect BIP RFCOMM connection.
| bip | BIP instance |
| int bt_bip_rfcomm_register | ( | struct bt_bip_rfcomm_server * | server | ) |
#include <zephyr/bluetooth/classic/bip.h>
Register BIP RFCOMM server.
| server | RFCOMM server to register |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Secondary Advanced Image Printing OBEX client.
Convenience function to connect a Secondary Advanced Image Printing client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
| primary_server | Associated primary server |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Secondary Advanced Image Printing OBEX server.
Convenience function to register a Secondary Advanced Image Printing server. This server handles referenced objects for the printing service.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_REFERENCED_OBJ) |
| cb | Server callback functions |
| primary_client | Associated primary client |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Connect Secondary Auto Archive OBEX client.
Convenience function to connect a Secondary Auto Archive client.
| bip | BIP instance |
| client | BIP client structure |
| cb | Client callback functions |
| buf | Connection request data |
| primary_server | Associated primary server |
|
inlinestatic |
#include <zephyr/bluetooth/classic/bip.h>
Register Secondary Auto Archive OBEX server.
Convenience function to register a Secondary Auto Archive server. This server handles archived objects for the auto archive service.
| bip | BIP instance |
| server | BIP server structure |
| uuid | Service UUID (typically BT_BIP_UUID_ARCHIVED_OBJ) |
| cb | Server callback functions |
| primary_client | Associated primary client |
| int bt_bip_secondary_client_connect | ( | struct bt_bip * | bip, |
| struct bt_bip_client * | client, | ||
| enum bt_bip_conn_type | type, | ||
| struct bt_bip_client_cb * | cb, | ||
| struct net_buf * | buf, | ||
| struct bt_bip_server * | primary_server ) |
#include <zephyr/bluetooth/classic/bip.h>
Connect a secondary BIP OBEX client.
Initiates a secondary BIP client connection with the specific type BT_BIP_2ND_CONN_TYPE_ of bt_bip_conn_type to the secondary server of BIP initiator that works as primary OBEX client.
| bip | BIP instance |
| client | BIP client structure |
| type | Secondary connection type |
| cb | Client callback functions |
| buf | Connection request data |
| primary_server | Associated primary server |
| int bt_bip_secondary_server_register | ( | struct bt_bip * | bip, |
| struct bt_bip_server * | server, | ||
| enum bt_bip_conn_type | type, | ||
| const struct bt_uuid_128 * | uuid, | ||
| struct bt_bip_server_cb * | cb, | ||
| struct bt_bip_client * | primary_client ) |
#include <zephyr/bluetooth/classic/bip.h>
Register a secondary BIP OBEX server.
Registers a secondary BIP server that works in conjunction with a primary client. Secondary servers handle operations like referenced objects or archived objects.
| bip | BIP instance |
| server | BIP server structure to register |
| type | Secondary connection type (REFERENCED_OBJECTS or ARCHIVED_OBJECTS) |
| uuid | Service UUID for the server |
| cb | Callback functions for handling server operations |
| primary_client | Associated primary client |
| int bt_bip_server_unregister | ( | struct bt_bip_server * | server | ) |
#include <zephyr/bluetooth/classic/bip.h>
Unregister a BIP OBEX server.
Unregisters a previously registered BIP server.
| server | BIP server to unregister |
#include <zephyr/bluetooth/classic/bip.h>
Set supported capabilities of BIP responder.
Set the supported capabilities bitmask of peer BIP responder to local BIP initiator.
| bip | BIP initiator instance |
| capabilities | Bitmask of supported capabilities. It is discovered from BIP responder by SDP discovery. |
#include <zephyr/bluetooth/classic/bip.h>
Set supported features of BIP responder.
Set the supported features bitmask of peer BIP responder to local BIP initiator.
| bip | BIP initiator instance |
| features | Bitmask of supported features. It is discovered from BIP responder by SDP discovery. |
#include <zephyr/bluetooth/classic/bip.h>
Set supported functions of BIP responder.
Set the supported functions bitmask of peer BIP responder to local BIP initiator.
| bip | BIP initiator instance |
| functions | Bitmask of supported functions. It is discovered from BIP responder by SDP discovery. |
| int bt_bip_start_archive | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Start Archive request.
Initiates an archive operation on the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, and BT_OBEX_HEADER_ID_APP_PARAM. And the value of type header is BT_BIP_HDR_TYPE_START_ARCHIVE. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_STORE_FLAG.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (archive control object) |
| int bt_bip_start_archive_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Start Archive response.
Responds to a Start Archive request.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (may contain job ID) |
| int bt_bip_start_print | ( | struct bt_bip_client * | client, |
| bool | final, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Start Print request.
Initiates a print job on the server. The following OBEX headers should be included for the first request, BT_OBEX_HEADER_ID_CONN_ID, BT_OBEX_HEADER_ID_TYPE, and BT_OBEX_HEADER_ID_APP_PARAM. And the value of type header is BT_BIP_HDR_TYPE_START_PRINT. The application parameter should include ID BT_BIP_APPL_PARAM_TAG_ID_STORE_FLAG.
| client | BIP client instance |
| final | True if this is the final packet |
| buf | Request data buffer (print control object) |
| int bt_bip_start_print_rsp | ( | struct bt_bip_server * | server, |
| uint8_t | rsp_code, | ||
| struct net_buf * | buf ) |
#include <zephyr/bluetooth/classic/bip.h>
Send Start Print response.
Responds to a Start Print request.
| server | BIP server instance |
| rsp_code | OBEX response code |
| buf | Response data buffer (may contain job ID) |