#[repr(C, packed)]pub struct ble_gap_opt_enable_evt_len_check_t {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
}
Expand description
@brief Enable event length checking.
When this option is enabled, the SoftDevice will prevent the application from switching to a state where the link can utilize more than the configured event length. See @ref ble_gap_conn_cfg_t::event_length. This validation is performed when the application calls the following APIs:
- @ref sd_ble_gap_connect
- @ref sd_ble_gap_phy_update
@note Event length checking is enabled by default.
@note For a link with an event length of @ref BLE_GAP_EVENT_LENGTH_2MBPS_PHY_MIN, the application cannot connect directly on 1Mbps unless @ref BLE_GAP_OPT_ENABLE_EVT_LEN_CHECK is disabled. The application is allowed to enable this option after the link has switched to 2Mbps.
@retval ::NRF_SUCCESS Set successfully.
Fields§
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
Implementations§
source§impl ble_gap_opt_enable_evt_len_check_t
impl ble_gap_opt_enable_evt_len_check_t
pub fn enable(&self) -> u8
pub fn set_enable(&mut self, val: u8)
pub fn new_bitfield_1(enable: u8) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations§
source§impl Clone for ble_gap_opt_enable_evt_len_check_t
impl Clone for ble_gap_opt_enable_evt_len_check_t
source§fn clone(&self) -> ble_gap_opt_enable_evt_len_check_t
fn clone(&self) -> ble_gap_opt_enable_evt_len_check_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more