bt_rfcomm

Function max_packet_size_from_l2cap_mtu

Source
pub fn max_packet_size_from_l2cap_mtu(mtu: u16) -> u16
Expand description

Returns the maximum RFCOMM packet size that can be used for the provided L2CAP mtu. It is assumed that mtu is a valid L2CAP MTU.