pub enum VendorRequest {
GetFeatures {
responder: VendorGetFeaturesResponder,
},
EncodeCommand {
payload: VendorCommand,
responder: VendorEncodeCommandResponder,
},
OpenHci {
responder: VendorOpenHciResponder,
},
OpenHciTransport {
responder: VendorOpenHciTransportResponder,
},
OpenSnoop {
responder: VendorOpenSnoopResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: VendorControlHandle,
method_type: MethodType,
},
}Expand description
The BtVendor protocol may be implemented by vendor drivers to support feature interrogation and vendor command encoding.
Variants§
GetFeatures
Returns the Vendor Features supported by this controller.
Fields
responder: VendorGetFeaturesResponderEncodeCommand
Encode the vendor HCI command and return the encoded command.
See VendorCommand for possible commands and parameters.
- error
ZX_ERR_NOT_SUPPORTEDThe command is not supported. - error
ZX_ERR_INVALID_ARGSThe parameters of the command are invalid.
OpenHci
Deprecated. Open the HCI protocol to the controller. This call may block until the controller has been initialized. Returns ALREADY_BOUND if another client has already connected.
Fields
responder: VendorOpenHciResponderOpenHciTransport
Open the HciTransport protocol to the controller. This call may block until the controller has been initialized. Returns ALREADY_BOUND if another client has already connected.
Fields
responder: VendorOpenHciTransportResponderOpenSnoop
Open the Snoop protocol to the transport driver. Returns ALREADY_BOUND if another client has already connected.
Fields
responder: VendorOpenSnoopResponder#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: VendorControlHandlemethod_type: MethodTypeImplementations§
Source§impl VendorRequest
impl VendorRequest
pub fn into_get_features(self) -> Option<VendorGetFeaturesResponder>
pub fn into_encode_command( self, ) -> Option<(VendorCommand, VendorEncodeCommandResponder)>
pub fn into_open_hci(self) -> Option<VendorOpenHciResponder>
pub fn into_open_hci_transport(self) -> Option<VendorOpenHciTransportResponder>
pub fn into_open_snoop(self) -> Option<VendorOpenSnoopResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL