• Home
  • Raw
  • Download

Lines Matching refs:uint16_t

113   uint16_t rtrans_tout;
114 uint16_t mon_tout;
115 uint16_t mps;
147 uint16_t result; /* Only used in confirm messages */
149 uint16_t mtu;
153 uint16_t flush_to;
160 uint16_t flags; /* bit 0: 0-no continuation, 1-continuation */
164 constexpr uint16_t L2CAP_LE_MIN_MTU = 23; // Minimum SDU size
165 constexpr uint16_t L2CAP_LE_MIN_MPS = 23;
166 constexpr uint16_t L2CAP_LE_MAX_MPS = 65533;
167 constexpr uint16_t L2CAP_LE_CREDIT_MAX = 65535;
171 constexpr uint16_t L2CAP_LE_CREDIT_DEFAULT = 0xffff;
175 constexpr uint16_t L2CAP_LE_CREDIT_THRESHOLD = 0x0040;
184 uint16_t result; /* Only used in confirm messages */
185 uint16_t mtu = 100;
186 uint16_t mps = 100;
187 uint16_t credits = L2CAP_LE_CREDIT_DEFAULT;
200 typedef void(tL2CA_CONNECT_IND_CB)(const RawAddress&, uint16_t, uint16_t,
208 typedef void(tL2CA_CONNECT_CFM_CB)(uint16_t, uint16_t);
214 typedef void(tL2CA_CONFIG_IND_CB)(uint16_t, tL2CAP_CFG_INFO*);
216 constexpr uint16_t L2CAP_INITIATOR_LOCAL = 1;
217 constexpr uint16_t L2CAP_INITIATOR_REMOTE = 0;
224 typedef void(tL2CA_CONFIG_CFM_CB)(uint16_t, uint16_t, tL2CAP_CFG_INFO*);
230 typedef void(tL2CA_DISCONNECT_IND_CB)(uint16_t, bool);
236 typedef void(tL2CA_DATA_IND_CB)(uint16_t, BT_HDR*);
244 typedef void(tL2CA_CONGESTION_STATUS_CB)(uint16_t, bool);
253 typedef void(tL2CA_TX_COMPLETE_CB)(uint16_t, uint16_t);
262 typedef void(tL2CA_ERROR_CB)(uint16_t, uint16_t);
272 std::vector<uint16_t>& lcids,
273 uint16_t psm, uint16_t peer_mtu,
283 uint16_t lcid,
284 uint16_t peer_mtu,
285 uint16_t result);
294 const RawAddress& bdaddr, uint16_t lcid, bool is_local_cfg,
336 uint16_t L2CA_Register2(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info,
338 uint16_t my_mtu, uint16_t required_remote_mtu,
339 uint16_t sec_level);
355 extern uint16_t L2CA_Register(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info,
357 uint16_t my_mtu, uint16_t required_remote_mtu,
358 uint16_t sec_level);
370 extern void L2CA_Deregister(uint16_t psm);
382 extern uint16_t L2CA_AllocateLePSM(void);
393 extern void L2CA_FreeLePSM(uint16_t psm);
395 extern uint16_t L2CA_ConnectReq2(uint16_t psm, const RawAddress& p_bd_addr,
396 uint16_t sec_level);
410 extern uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr);
426 extern uint16_t L2CA_RegisterLECoc(uint16_t psm,
428 uint16_t sec_level, tL2CAP_LE_CFG_INFO cfg);
440 extern void L2CA_DeregisterLECoc(uint16_t psm);
454 extern uint16_t L2CA_ConnectLECocReq(uint16_t psm, const RawAddress& p_bd_addr,
456 uint16_t sec_level);
467 extern bool L2CA_GetPeerLECocConfig(uint16_t lcid,
481 std::vector<uint16_t>& lcids,
497 extern std::vector<uint16_t> L2CA_ConnectCreditBasedReq(
498 uint16_t psm, const RawAddress& p_bd_addr, tL2CAP_LE_CFG_INFO* p_cfg);
512 std::vector<uint16_t>& accepted_lcids,
513 uint16_t result,
524 extern bool L2CA_DisconnectReq(uint16_t cid);
526 extern bool L2CA_DisconnectLECocReq(uint16_t cid);
540 extern uint8_t L2CA_DataWrite(uint16_t cid, BT_HDR* p_data);
542 extern uint8_t L2CA_LECocDataWrite(uint16_t cid, BT_HDR* p_data);
548 bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid);
570 uint16_t timeout,
599 extern uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush);
624 extern bool L2CA_SetTxPriority(uint16_t cid, tL2CAP_CHNL_PRIORITY priority);
636 extern bool L2CA_SetChnlFlushability(uint16_t cid, bool is_flushable);
666 typedef void(tL2CA_FIXED_CHNL_CB)(uint16_t, const RawAddress&, bool, uint16_t,
674 typedef void(tL2CA_FIXED_DATA_CB)(uint16_t, const RawAddress&, BT_HDR*);
691 uint16_t default_idle_tout;
706 extern bool L2CA_RegisterFixedChannel(uint16_t fixed_cid,
721 extern bool L2CA_ConnectFixedChnl(uint16_t fixed_cid,
738 extern uint16_t L2CA_SendFixedChnlData(uint16_t fixed_cid,
755 extern bool L2CA_RemoveFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda);
775 uint16_t idle_tout);
778 uint16_t min_int, uint16_t max_int,
779 uint16_t latency, uint16_t timeout,
780 uint16_t min_ce_len, uint16_t max_ce_len);
808 extern void L2CA_AdjustConnectionIntervals(uint16_t* min_interval,
809 uint16_t* max_interval,
810 uint16_t floor_interval);