Airoha M0 BLE API  1.0.5.4
l2cap_le_sig.h
1 /******************************************************************************
2 Copyright (c) Airoha 2016 - All rights reserved
3 
4 FILE NAME
5  l2cap_le_sig.h
6 DESCRIPTION
7 NOTES
8 ********************************************************************************/
9 #ifndef __L2CAP_LE_SIG_HH_
10 #define __L2CAP_LE_SIG_HH_
11 #include "platform.h"
12 
13 #ifdef _MSC_VER
14 __pragma(pack(push, 1))
15 #define __attribute__(x)
16 #endif
17 
18 
19 typedef struct
20 {
21  uint16_t min_conn_interval;
22  uint16_t max_conn_interval;
23  uint16_t slave_latency;
24  uint16_t conn_sup_timeout;
25 } __attribute__((packed)) ble_sig_conn_params_t;
26 
27 #ifdef _MSC_VER
28 __pragma(pack(pop))
29 #undef __attribute__
30 #endif
31 
32 void l2cap_lesig_init(void);
33 void l2cap_lesig_conn_param_update_req(uint8_t idx, ble_sig_conn_params_t *conn);
34 void l2cap_lesig_conn_param_update_rsp(uint8_t idx, uint8_t identifier, bool is_accept);
35 void l2cap_lesig_error_rsp(uint8_t idx, uint8_t identifier, uint16_t reason);
36 
37 #endif