|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
ePacket Bluetooth GATT central interface More...
Data Structures | |
| struct | epacket_bt_gatt_connect_params |
| Parameters for epacket_bt_gatt_connect. More... | |
Macros | |
| #define | epacket_bt_central_frame epacket_v0_versioned_frame_format |
| Bluetooth GATT central interface frame format, epacket_v0_versioned_frame_format. | |
Functions | |
| int | epacket_bt_gatt_connect (struct bt_conn **conn, struct epacket_bt_gatt_connect_params *params, struct epacket_read_response *security, bool *already) |
| Connect to a peer Infuse-IoT device via Bluetooth GATT. | |
| void | epacket_bt_gatt_notify_init (struct bt_conn *conn) |
| Setup epacket_bt_gatt_notify_recv_func. | |
| uint8_t | epacket_bt_gatt_notify_recv_func (struct bt_conn *conn, struct bt_gatt_subscribe_params *params, const void *data, uint16_t length) |
| Infuse-IoT Bluetooth GATT characteristic notification handle function. | |
| void | epacket_bt_gatt_rate_limit_request (uint8_t delay_ms) |
| Send a epacket_rate_limit_req to all connected peer devices. | |
| int | epacket_bt_gatt_rate_throughput_request (struct bt_conn *conn, uint16_t throughput_kbps) |
| Send a epacket_rate_throughput_req to a specific peer device. | |
ePacket Bluetooth GATT central interface
| #define epacket_bt_central_frame epacket_v0_versioned_frame_format |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_central.h>
Bluetooth GATT central interface frame format, epacket_v0_versioned_frame_format.
| int epacket_bt_gatt_connect | ( | struct bt_conn ** | conn, |
| struct epacket_bt_gatt_connect_params * | params, | ||
| struct epacket_read_response * | security, | ||
| bool * | already ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_central.h>
Connect to a peer Infuse-IoT device via Bluetooth GATT.
| conn | Output connection object on success |
| params | ePacket connection parameters |
| security | Output security parameters of the peer device on success |
| already | True if the connection already existed |
| 0 | on success, *conn is valid |
| -ENOTCONN | if existing_only is set and no connection exists |
| -EINVAL | if an existing connection was not created by this interface |
| -EIO | if setup of an existing connection by another caller failed |
| -ETIMEDOUT | if setup of an existing connection did not complete within the connection timeout |
| >0 | on HCI error, *conn is invalid |
| <0 | on Zephyr error, *conn is invalid |
| void epacket_bt_gatt_notify_init | ( | struct bt_conn * | conn | ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_central.h>
Setup epacket_bt_gatt_notify_recv_func.
| conn | Connection object. Must not be NULL. |
| uint8_t epacket_bt_gatt_notify_recv_func | ( | struct bt_conn * | conn, |
| struct bt_gatt_subscribe_params * | params, | ||
| const void * | data, | ||
| uint16_t | length ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_central.h>
Infuse-IoT Bluetooth GATT characteristic notification handle function.
Public API function so that connections setup through a function other than epacket_bt_gatt_connect can hook the connection up as an ePacket data source dynamically.
| conn | Connection object. May be NULL, indicating that the peer is being unpaired |
| params | Subscription parameters. |
| data | Attribute value data. If NULL then subscription was removed. |
| length | Attribute value length. |
| void epacket_bt_gatt_rate_limit_request | ( | uint8_t | delay_ms | ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_central.h>
Send a epacket_rate_limit_req to all connected peer devices.
| delay_ms | Delay duration to request |
| int epacket_bt_gatt_rate_throughput_request | ( | struct bt_conn * | conn, |
| uint16_t | throughput_kbps ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_central.h>
Send a epacket_rate_throughput_req to a specific peer device.
| conn | Connection object |
| throughput_kbps | Requested throughput limit in kilobits/sec |
| 0 | on success |
| -errno | on error |