[−][src]Trait bluenrg::l2cap::Commands
L2Cap-specific commands for the ActiveBlueNRG
.
Associated Types
type Error
Type of communication errors.
Required methods
fn connection_parameter_update_request(
&mut self,
params: &ConnectionParameterUpdateRequest
) -> Result<(), Self::Error>
&mut self,
params: &ConnectionParameterUpdateRequest
) -> Result<(), Self::Error>
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).
fn connection_parameter_update_response(
&mut self,
params: &ConnectionParameterUpdateResponse
) -> Result<(), Self::Error>
&mut self,
params: &ConnectionParameterUpdateResponse
) -> Result<(), Self::Error>
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.
Implementors
impl<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, SpiError, GpioError> Commands for ActiveBlueNRG<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, GpioError> where
SPI: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError>,
OutputPin1: OutputPin<Error = GpioError>,
OutputPin2: OutputPin<Error = GpioError>,
InputPin: InputPin<Error = GpioError>,
[src]
SPI: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError>,
OutputPin1: OutputPin<Error = GpioError>,
OutputPin2: OutputPin<Error = GpioError>,
InputPin: InputPin<Error = GpioError>,
type Error = Error<SpiError, GpioError>
fn connection_parameter_update_request(
&mut self,
params: &ConnectionParameterUpdateRequest
) -> Result<(), Self::Error>
[src]
&mut self,
params: &ConnectionParameterUpdateRequest
) -> Result<(), Self::Error>
fn connection_parameter_update_response(
&mut self,
params: &ConnectionParameterUpdateResponse
) -> Result<(), Self::Error>
[src]
&mut self,
params: &ConnectionParameterUpdateResponse
) -> Result<(), Self::Error>