Trait stm32wb_hci::vendor::stm32wb::command::l2cap::L2capCommands
source · pub trait L2capCommands {
// Required methods
async fn connection_parameter_update_request(
&mut self,
params: &ConnectionParameterUpdateRequest
);
async fn connection_parameter_update_response(
&mut self,
params: &ConnectionParameterUpdateResponse
);
}Expand description
L2Cap-specific commands for the ActiveBlueNRG.
Required Methods§
sourceasync fn connection_parameter_update_request(
&mut self,
params: &ConnectionParameterUpdateRequest
)
async fn connection_parameter_update_request( &mut self, params: &ConnectionParameterUpdateRequest )
Send an L2CAP connection parameter update request from the peripheral to the central device.
Errors
- Underlying communication errors.
Generated events
A command status event on the receipt of the command and an L2CAP Connection Update Response event when the master responds to the request (accepts or rejects).
sourceasync fn connection_parameter_update_response(
&mut self,
params: &ConnectionParameterUpdateResponse
)
async fn connection_parameter_update_response( &mut self, params: &ConnectionParameterUpdateResponse )
This command should be sent in response to the
L2CapConnectionUpdateResponse
event from the controller. The accept parameter has to be set to true if the connection
parameters given in the event are acceptable.
Errors
Only underlying communication errors are reported.
Generated events
A Command Complete event is generated.