Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccf66fe9 authored by Chris Manton's avatar Chris Manton
Browse files

Add API stack/l2cap/l2c_ble::l2cble_conn_comp_from_address_with_type

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I93466084b186f972fc572d9c076db52fdc23b89c
parent b80e0dcd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -36,6 +36,10 @@ extern void l2cble_conn_comp(uint16_t handle, uint8_t role,
                             uint16_t conn_interval, uint16_t conn_latency,
                             uint16_t conn_timeout);

extern void l2cble_conn_comp_from_address_with_type(
    uint16_t handle, uint8_t role, const tBLE_BD_ADDR& address_with_type,
    uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout);

extern void l2cble_process_conn_update_evt(uint16_t handle, uint8_t status,
                                           uint16_t interval, uint16_t latency,
                                           uint16_t timeout);
+7 −0
Original line number Diff line number Diff line
@@ -332,6 +332,13 @@ void l2cble_conn_comp(uint16_t handle, uint8_t role, const RawAddress& bda,
  }
}

void l2cble_conn_comp_from_address_with_type(
    uint16_t handle, uint8_t role, const tBLE_BD_ADDR& address_with_type,
    uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout) {
  l2cble_conn_comp(handle, role, address_with_type.bda, address_with_type.type,
                   conn_interval, conn_latency, conn_timeout);
}

/*******************************************************************************
 *
 *  Function        l2cble_start_conn_update