41 bool phy_le_coded : 1;
132 const uint8_t tx_phy,
133 const uint8_t rx_phy);
149 FuriEventLoop* event_loop,
BleConnectionContext * ble_connection_alloc(BleDeviceAddressType type, const uint8_t *const peer_address)
Creates connection instance.
Definition ble_connection.c:49
const BlePhy * ble_connection_get_tx_phy(BleConnectionContext *instance)
Get Tx PHY info from the connection.
Definition ble_connection.c:104
const BleConnectionDataLength * ble_connection_get_data_length(BleConnectionContext *instance)
Getter for accessing BleConnectionDataLength from the connection.
Definition ble_connection.c:89
void ble_connection_start_update_parameters(BleConnectionContext *instance, FuriEventLoop *event_loop, BleConnectionUpdateParametersDoneCallback done_cb, void *ctx)
Start process of updating connection parameters.
Definition ble_connection.c:242
void(* BleConnectionUpdateParametersDoneCallback)(void *ctx)
Type definition for callback to be triggered when connection parameters updated.
Definition ble_connection.h:13
void ble_connection_set_data_length(BleConnectionContext *instance, const BleConnectionDataLength *const data_length)
Set data length from outside.
Definition ble_connection.c:94
BleDeviceBase * ble_connection_get_peer(BleConnectionContext *instance)
Get pointer to connected remote peer instance for future use.
Definition ble_connection.c:71
void ble_connection_free(BleConnectionContext *instance)
Free connection instance when disconnect happened.
Definition ble_connection.c:59
void ble_connection_set_phy(BleConnectionContext *instance, const uint8_t tx_phy, const uint8_t rx_phy)
Set both Rx and Tx PHY infos to the connection.
Definition ble_connection.c:114
void ble_connection_set_timings(BleConnectionContext *instance, const BleConnectionTimings *const timings)
Set connection timing data from outside.
Definition ble_connection.c:81
const BlePhy * ble_connection_get_rx_phy(BleConnectionContext *instance)
Get Rx PHY info from the connection.
Definition ble_connection.c:109
const BleConnectionTimings * ble_connection_get_timings(BleConnectionContext *instance)
Getter for accessing BleConnectionTimings from the connection.
Definition ble_connection.c:76
Common logic for remote and bsb devices.
BleDeviceAddressType
Enumeration of device address types.
Definition ble_device_base.h:39
Definition ble_connection.c:29
Connection data length.
Definition ble_connection.h:27
uint16_t MaxRxTime
Maximum Rx time to receive the MaxRxOctets.
Definition ble_connection.h:31
uint16_t MaxTxTime
Maximum TX time to transmit the MaxTxOctets.
Definition ble_connection.h:29
uint16_t MaxTxOctets
Maximum TX Octets to be transmitted.
Definition ble_connection.h:28
uint16_t MaxRxOctets
Maximum Rx Octets to be received.
Definition ble_connection.h:30
Connection timings.
Definition ble_connection.h:18
Definition ble_device_base.c:3
Ble PHY representation.
Definition ble_connection.h:37