riot_sys

Function ble_hs_mbuf_att_pkt

Source
pub unsafe extern "C" fn ble_hs_mbuf_att_pkt() -> *mut os_mbuf
Expand description

Allocates an mbuf suitable for an ATT command packet. The resulting packet has sufficient leading space for:

  • ACL data header
  • L2CAP B-frame header
  • Largest ATT command base (prepare write request / response).

@return An empty mbuf on success, NULL on error.