SPP API. More...
Go to the source code of this file.
Classes | |
| struct | bt_spp_ops_s |
| Bluetooth SPP application callbacks. More... | |
| struct | bt_spp_state_s |
| Bluetooth SPP context. More... | |
Functions | |
| bool | bt_spp_is_supported (void) |
| Get SPP support or not support. More... | |
| int | bt_spp_connect (struct bt_acl_state_s *bt_acl_state) |
| Bluetooth SPP connect Connect to peer device with SPP. More... | |
| int | bt_spp_disconnect (struct bt_acl_state_s *bt_acl_state) |
| Bluetooth SPP disconnect Disconnect to peer device with SPP. More... | |
| int | bt_spp_set_uuid (BT_UUID *uuid) |
| Bluetooth SPP set UUID. More... | |
| int | bt_spp_send_tx_data (struct bt_acl_state_s *bt_acl_state, uint8_t *data, int len) |
| Bluetooth SPP send Tx data. More... | |
| int | bt_spp_register_cb (struct bt_spp_ops_s *bt_spp_ops) |
| Bluetooth SPP Register notification Set callback about SPP callbacks. More... | |
SPP API.
This API is for using SPP and includes Function and Callback
| bool bt_spp_is_supported | ( | void | ) |
Get SPP support or not support.
| Suppot | or Not support |
| int bt_spp_connect | ( | struct bt_acl_state_s * | bt_acl_state | ) |
Bluetooth SPP connect Connect to peer device with SPP.
| [in] | bt_acl_state | Bluetooth context bt_acl_state_s |
| error | code |
| int bt_spp_disconnect | ( | struct bt_acl_state_s * | bt_acl_state | ) |
Bluetooth SPP disconnect Disconnect to peer device with SPP.
| [in] | bt_acl_state | Bluetooth context bt_acl_state_s |
| error | code |
| int bt_spp_set_uuid | ( | BT_UUID * | uuid | ) |
| int bt_spp_send_tx_data | ( | struct bt_acl_state_s * | bt_acl_state, |
| uint8_t * | data, | ||
| int | len | ||
| ) |
Bluetooth SPP send Tx data.
| [in] | bt_acl_state | Bluetooth context bt_acl_state_s |
| [in] | data | uint8_t * Tx data. |
| [in] | len | int Tx data size. |
| error | code |
| int bt_spp_register_cb | ( | struct bt_spp_ops_s * | bt_spp_ops | ) |
Bluetooth SPP Register notification Set callback about SPP callbacks.
| [in] | bt_spp_ops | Callback functions bt_spp_ops_s |
| error | code |