43#ifndef __MODULES_INCLUDE_BLUETOOTH_BT_SPP_H
44#define __MODULES_INCLUDE_BLUETOOTH_BT_SPP_H
Bluetooth common header for SDK on Spresense.
BT_CONNECT_FAIL_REASON_ID
BT profile connection result.
Definition: bluetooth.h:238
BT_CONNECT_STATUS
BT profile connection status.
Definition: bt_common.h:135
int bt_spp_disconnect(struct bt_acl_state_s *bt_acl_state)
Bluetooth SPP disconnect Disconnect to peer device with SPP.
int bt_spp_set_uuid(BT_UUID *uuid)
Bluetooth SPP set UUID.
bool bt_spp_is_supported(void)
Get SPP support or not support.
int bt_spp_connect(struct bt_acl_state_s *bt_acl_state)
Bluetooth SPP connect Connect to peer device with SPP.
int bt_spp_send_tx_data(struct bt_acl_state_s *bt_acl_state, uint8_t *data, int len)
Bluetooth SPP send Tx data.
int bt_spp_register_cb(struct bt_spp_ops_s *bt_spp_ops)
Bluetooth SPP Register notification Set callback about SPP callbacks.
128-bit UUID types
Definition: bluetooth.h:180
Bluetooth ACL context.
Definition: bt_common.h:164
Bluetooth SPP HAL callbacks.
Definition: bt_if.h:128
Bluetooth SPP application callbacks.
Definition: bt_spp.h:63
void(* disconnect)(struct bt_acl_state_s *bt_acl_state)
Definition: bt_spp.h:65
void(* connect)(struct bt_acl_state_s *bt_acl_state)
Definition: bt_spp.h:64
void(* receive_data)(struct bt_acl_state_s *bt_acl_state, uint8_t *data, int len)
Definition: bt_spp.h:67
void(* connection_fail)(struct bt_acl_state_s *bt_acl_state, BT_CONNECT_FAIL_REASON_ID fail_id)
Definition: bt_spp.h:66
Bluetooth SPP context.
Definition: bt_spp.h:75
struct bt_acl_state_s * bt_acl_state
Definition: bt_spp.h:78
struct bt_hal_spp_ops_s * bt_hal_spp_ops
Definition: bt_spp.h:79
BT_UUID spp_uuid
Definition: bt_spp.h:81
BT_CONNECT_STATUS bt_spp_connection
Definition: bt_spp.h:76
struct bt_spp_ops_s * bt_spp_ops
Definition: bt_spp.h:80
uint16_t bt_spp_handle
Definition: bt_spp.h:77