[−][src]Struct bluenrg::ActiveBlueNRG
Handle for actively communicating with the controller over the SPI bus.
An ActiveBlueNRG
should not be created by the application, but is passed to closures given to
BlueNRG::with_spi
. ActiveBlueNRG
implements bluetooth_hci::Controller
, so it is used
to access the HCI functions for the controller.
Trait Implementations
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>
Type of communication errors.
fn set_nondiscoverable(&mut self) -> Result<(), Self::Error>
[src]
fn set_limited_discoverable<'a, 'b>(
&mut self,
params: &DiscoverableParameters<'a, 'b>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &DiscoverableParameters<'a, 'b>
) -> Result<(), Error<Self::Error>>
fn set_discoverable<'a, 'b>(
&mut self,
params: &DiscoverableParameters<'a, 'b>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &DiscoverableParameters<'a, 'b>
) -> Result<(), Error<Self::Error>>
fn set_direct_connectable(
&mut self,
params: &DirectConnectableParameters
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &DirectConnectableParameters
) -> Result<(), Error<Self::Error>>
fn set_io_capability(
&mut self,
capability: IoCapability
) -> Result<(), Self::Error>
[src]
&mut self,
capability: IoCapability
) -> Result<(), Self::Error>
fn set_authentication_requirement(
&mut self,
params: &AuthenticationRequirements
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &AuthenticationRequirements
) -> Result<(), Error<Self::Error>>
fn set_authorization_requirement(
&mut self,
conn_handle: ConnectionHandle,
authorization_required: bool
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
authorization_required: bool
) -> Result<(), Self::Error>
fn pass_key_response(
&mut self,
conn_handle: ConnectionHandle,
pin: u32
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
conn_handle: ConnectionHandle,
pin: u32
) -> Result<(), Error<Self::Error>>
fn authorization_response(
&mut self,
conn_handle: ConnectionHandle,
authorization: Authorization
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
authorization: Authorization
) -> Result<(), Self::Error>
fn init(
&mut self,
role: Role,
privacy_enabled: bool,
dev_name_characteristic_len: u8
) -> Result<(), Self::Error>
[src]
&mut self,
role: Role,
privacy_enabled: bool,
dev_name_characteristic_len: u8
) -> Result<(), Self::Error>
fn set_nonconnectable(
&mut self,
advertising_type: AdvertisingType,
address_type: AddressType
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
advertising_type: AdvertisingType,
address_type: AddressType
) -> Result<(), Error<Self::Error>>
fn set_undirected_connectable(
&mut self,
filter_policy: AdvertisingFilterPolicy,
address_type: AddressType
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
filter_policy: AdvertisingFilterPolicy,
address_type: AddressType
) -> Result<(), Error<Self::Error>>
fn peripheral_security_request(
&mut self,
params: &SecurityRequestParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &SecurityRequestParameters
) -> Result<(), Self::Error>
fn update_advertising_data(
&mut self,
data: &[u8]
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
data: &[u8]
) -> Result<(), Error<Self::Error>>
fn delete_ad_type(
&mut self,
ad_type: AdvertisingDataType
) -> Result<(), Self::Error>
[src]
&mut self,
ad_type: AdvertisingDataType
) -> Result<(), Self::Error>
fn get_security_level(&mut self) -> Result<(), Self::Error>
[src]
fn set_event_mask(&mut self, flags: EventFlags) -> Result<(), Self::Error>
[src]
fn configure_white_list(&mut self) -> Result<(), Self::Error>
[src]
fn terminate(
&mut self,
conn_handle: ConnectionHandle,
reason: Status<Status>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
conn_handle: ConnectionHandle,
reason: Status<Status>
) -> Result<(), Error<Self::Error>>
fn clear_security_database(&mut self) -> Result<(), Self::Error>
[src]
fn allow_rebond(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
fn start_limited_discovery_procedure(
&mut self,
params: &DiscoveryProcedureParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &DiscoveryProcedureParameters
) -> Result<(), Self::Error>
fn start_general_discovery_procedure(
&mut self,
params: &DiscoveryProcedureParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &DiscoveryProcedureParameters
) -> Result<(), Self::Error>
fn start_name_discovery_procedure(
&mut self,
params: &NameDiscoveryProcedureParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &NameDiscoveryProcedureParameters
) -> Result<(), Self::Error>
fn start_auto_connection_establishment<'a>(
&mut self,
params: &AutoConnectionEstablishmentParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &AutoConnectionEstablishmentParameters<'a>
) -> Result<(), Error<Self::Error>>
fn start_general_connection_establishment(
&mut self,
params: &GeneralConnectionEstablishmentParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &GeneralConnectionEstablishmentParameters
) -> Result<(), Self::Error>
fn start_selective_connection_establishment<'a>(
&mut self,
params: &SelectiveConnectionEstablishmentParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &SelectiveConnectionEstablishmentParameters<'a>
) -> Result<(), Error<Self::Error>>
fn create_connection(
&mut self,
params: &ConnectionParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &ConnectionParameters
) -> Result<(), Self::Error>
fn terminate_procedure(
&mut self,
procedure: Procedure
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
procedure: Procedure
) -> Result<(), Error<Self::Error>>
fn start_connection_update(
&mut self,
params: &ConnectionUpdateParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &ConnectionUpdateParameters
) -> Result<(), Self::Error>
fn send_pairing_request(
&mut self,
params: &PairingRequest
) -> Result<(), Self::Error>
[src]
&mut self,
params: &PairingRequest
) -> Result<(), Self::Error>
fn resolve_private_address(&mut self, addr: BdAddr) -> Result<(), Self::Error>
[src]
fn get_bonded_devices(&mut self) -> Result<(), Self::Error>
[src]
fn set_broadcast_mode(
&mut self,
params: &BroadcastModeParameters
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &BroadcastModeParameters
) -> Result<(), Error<Self::Error>>
fn start_observation_procedure(
&mut self,
params: &ObservationProcedureParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &ObservationProcedureParameters
) -> Result<(), Self::Error>
fn is_device_bonded(&mut self, addr: PeerAddrType) -> Result<(), Self::Error>
[src]
fn init_gap(
&mut self,
role: Role,
privacy_enabled: bool,
dev_name_characteristic_len: u8
) -> Result<(), Self::Error>
[src]
&mut self,
role: Role,
privacy_enabled: bool,
dev_name_characteristic_len: u8
) -> Result<(), Self::Error>
fn set_gap_event_mask(&mut self, flags: EventFlags) -> Result<(), Self::Error>
[src]
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>
Type of communication errors.
fn init(&mut self) -> Result<(), Self::Error>
[src]
fn add_service(
&mut self,
params: &AddServiceParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &AddServiceParameters
) -> Result<(), Self::Error>
fn include_service(
&mut self,
params: &IncludeServiceParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &IncludeServiceParameters
) -> Result<(), Self::Error>
fn add_characteristic(
&mut self,
params: &AddCharacteristicParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &AddCharacteristicParameters
) -> Result<(), Self::Error>
fn add_characteristic_descriptor<'a>(
&mut self,
params: &AddDescriptorParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &AddDescriptorParameters<'a>
) -> Result<(), Error<Self::Error>>
fn update_characteristic_value<'a>(
&mut self,
params: &UpdateCharacteristicValueParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &UpdateCharacteristicValueParameters<'a>
) -> Result<(), Error<Self::Error>>
fn delete_characteristic(
&mut self,
service: ServiceHandle,
characteristic: CharacteristicHandle
) -> Result<(), Self::Error>
[src]
&mut self,
service: ServiceHandle,
characteristic: CharacteristicHandle
) -> Result<(), Self::Error>
fn delete_service(&mut self, service: ServiceHandle) -> Result<(), Self::Error>
[src]
fn delete_included_service(
&mut self,
params: &DeleteIncludedServiceParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &DeleteIncludedServiceParameters
) -> Result<(), Self::Error>
fn set_event_mask(&mut self, params: Event) -> Result<(), Self::Error>
[src]
fn exchange_configuration(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
fn find_information_request(
&mut self,
conn_handle: ConnectionHandle,
attribute_range: Range<CharacteristicHandle>
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
attribute_range: Range<CharacteristicHandle>
) -> Result<(), Self::Error>
fn find_by_type_value_request<'a>(
&mut self,
params: &FindByTypeValueParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &FindByTypeValueParameters<'a>
) -> Result<(), Error<Self::Error>>
fn read_by_type_request(
&mut self,
params: &ReadByTypeParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &ReadByTypeParameters
) -> Result<(), Self::Error>
fn read_by_group_type_request(
&mut self,
params: &ReadByTypeParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &ReadByTypeParameters
) -> Result<(), Self::Error>
fn prepare_write_request<'a>(
&mut self,
params: &WriteRequest<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &WriteRequest<'a>
) -> Result<(), Error<Self::Error>>
fn execute_write_request(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
fn cancel_write_request(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
fn discover_all_primary_services(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
fn discover_primary_services_by_uuid(
&mut self,
conn_handle: ConnectionHandle,
uuid: Uuid
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
uuid: Uuid
) -> Result<(), Self::Error>
fn find_included_services(
&mut self,
conn_handle: ConnectionHandle,
service_handle_range: Range<ServiceHandle>
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
service_handle_range: Range<ServiceHandle>
) -> Result<(), Self::Error>
fn discover_all_characteristics_of_service(
&mut self,
conn_handle: ConnectionHandle,
attribute_handle_range: Range<CharacteristicHandle>
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
attribute_handle_range: Range<CharacteristicHandle>
) -> Result<(), Self::Error>
fn discover_characteristics_by_uuid(
&mut self,
conn_handle: ConnectionHandle,
attribute_handle_range: Range<CharacteristicHandle>,
uuid: Uuid
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
attribute_handle_range: Range<CharacteristicHandle>,
uuid: Uuid
) -> Result<(), Self::Error>
fn discover_all_characteristic_descriptors(
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle_range: Range<CharacteristicHandle>
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle_range: Range<CharacteristicHandle>
) -> Result<(), Self::Error>
fn read_characteristic_value(
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle: CharacteristicHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle: CharacteristicHandle
) -> Result<(), Self::Error>
fn read_characteristic_using_uuid(
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle_range: Range<CharacteristicHandle>,
uuid: Uuid
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle_range: Range<CharacteristicHandle>,
uuid: Uuid
) -> Result<(), Self::Error>
fn read_long_characteristic_value(
&mut self,
params: &LongCharacteristicReadParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &LongCharacteristicReadParameters
) -> Result<(), Self::Error>
fn read_multiple_characteristic_values<'a>(
&mut self,
params: &MultipleCharacteristicReadParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &MultipleCharacteristicReadParameters<'a>
) -> Result<(), Error<Self::Error>>
fn write_characteristic_value<'a>(
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
fn write_long_characteristic_value<'a>(
&mut self,
params: &LongCharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &LongCharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
fn write_characteristic_value_reliably<'a>(
&mut self,
params: &LongCharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &LongCharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
fn write_long_characteristic_descriptor<'a>(
&mut self,
params: &LongCharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &LongCharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
fn read_long_characteristic_descriptor(
&mut self,
params: &LongCharacteristicReadParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &LongCharacteristicReadParameters
) -> Result<(), Self::Error>
fn write_characteristic_descriptor<'a>(
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
fn read_characteristic_descriptor(
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle: CharacteristicHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle,
characteristic_handle: CharacteristicHandle
) -> Result<(), Self::Error>
fn write_without_response<'a>(
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
fn signed_write_without_response<'a>(
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &CharacteristicValue<'a>
) -> Result<(), Error<Self::Error>>
fn confirm_indication(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
fn write_response<'a>(
&mut self,
params: &WriteResponseParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &WriteResponseParameters<'a>
) -> Result<(), Error<Self::Error>>
fn allow_read(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Self::Error>
fn set_security_permission(
&mut self,
params: &SecurityPermissionParameters
) -> Result<(), Self::Error>
[src]
&mut self,
params: &SecurityPermissionParameters
) -> Result<(), Self::Error>
fn set_descriptor_value<'a>(
&mut self,
params: &DescriptorValueParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &DescriptorValueParameters<'a>
) -> Result<(), Error<Self::Error>>
fn read_handle_value(
&mut self,
handle: CharacteristicHandle
) -> Result<(), Self::Error>
[src]
&mut self,
handle: CharacteristicHandle
) -> Result<(), Self::Error>
fn read_handle_value_offset(
&mut self,
handle: CharacteristicHandle,
offset: usize
) -> Result<(), Self::Error>
[src]
&mut self,
handle: CharacteristicHandle,
offset: usize
) -> Result<(), Self::Error>
fn update_long_characteristic_value<'a>(
&mut self,
params: &UpdateLongCharacteristicValueParameters<'a>
) -> Result<(), Error<Self::Error>>
[src]
&mut self,
params: &UpdateLongCharacteristicValueParameters<'a>
) -> Result<(), Error<Self::Error>>
fn init_gatt(&mut self) -> Result<(), Self::Error>
[src]
fn set_gatt_event_mask(&mut self, mask: Event) -> Result<(), Self::Error>
[src]
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>
Type of communication errors.
fn get_firmware_revision(&mut self) -> Result<(), Self::Error>
[src]
fn write_config_data(&mut self, params: &ConfigData) -> Result<(), Self::Error>
[src]
fn read_config_data(
&mut self,
param: ConfigParameter
) -> Result<(), Self::Error>
[src]
&mut self,
param: ConfigParameter
) -> Result<(), Self::Error>
fn set_tx_power_level(&mut self, level: PowerLevel) -> Result<(), Self::Error>
[src]
fn device_standby(&mut self) -> Result<(), Self::Error>
[src]
fn get_tx_test_packet_count(&mut self) -> Result<(), Self::Error>
[src]
fn start_tone(&mut self, channel: u8) -> Result<(), Error<Self::Error>>
[src]
fn stop_tone(&mut self) -> Result<(), Self::Error>
[src]
fn get_link_status(&mut self) -> Result<(), Self::Error>
[src]
fn get_anchor_period(&mut self) -> Result<(), Self::Error>
[src]
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>
Type of communication errors.
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>
impl<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, SpiError, GpioError> Controller 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>
Enumeration of [Controller
] errors. These typically will be specializations of [host::uart::Error
] that specify both the vendor-specific error type and a communication error type. The communication error type in turn will depend on the bus used to communicate with the controller as well as the device crate (e.g., [linux-embedded-hal::Spidev
] uses [std::io::Error
]). Read more
type Header = CommandHeader
The type of header sent to the controller for HCI commands. Should be either [host::uart::CommandHeader
], [host::cmd_link::Header
], or [host::event_link::NoCommands
], depending on the controller implementation. Read more
type Vendor = BlueNRGTypes
Type containing vendor-specific extensions for the controller, including vendor-specific errors, events, and status codes. Read more
fn write(&mut self, header: &[u8], payload: &[u8]) -> Result<(), Self::Error>
[src]
fn read_into(&mut self, buffer: &mut [u8]) -> Result<(), Self::Error>
[src]
fn peek(&mut self, n: usize) -> Result<u8, Self::Error>
[src]
Auto Trait Implementations
impl<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, GpioError> Send for ActiveBlueNRG<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, GpioError> where
GpioError: Send,
InputPin: Send,
OutputPin1: Send,
OutputPin2: Send,
SPI: Send,
GpioError: Send,
InputPin: Send,
OutputPin1: Send,
OutputPin2: Send,
SPI: Send,
impl<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, GpioError> Sync for ActiveBlueNRG<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, GpioError> where
GpioError: Sync,
InputPin: Sync,
OutputPin1: Sync,
OutputPin2: Sync,
SPI: Sync,
GpioError: Sync,
InputPin: Sync,
OutputPin1: Sync,
OutputPin2: Sync,
SPI: Sync,
impl<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, GpioError> Unpin for ActiveBlueNRG<'bnrg, 'spi, 'dbuf, SPI, OutputPin1, OutputPin2, InputPin, GpioError> where
'dbuf: 'bnrg,
'dbuf: 'bnrg,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<E, Vendor, VE, T> Hci<E, Vendor, VE> for T where
T: Controller<Error = E, Header = CommandHeader>,
[src]
T: Controller<Error = E, Header = CommandHeader>,
fn read(&mut self) -> Result<Packet<Vendor>, Error<Error<E, VE>>> where
Vendor: VendorEvent<Error = VE>,
[src]
Vendor: VendorEvent<Error = VE>,
impl<E, T, Header> Hci<E> for T where
Header: HciHeader,
T: Controller<Error = E, Header = Header>,
[src]
Header: HciHeader,
T: Controller<Error = E, Header = Header>,
type VS = <<T as Controller>::Vendor as Vendor>::Status
Vendor-specific status codes.
fn disconnect(
&mut self,
conn_handle: ConnectionHandle,
reason: Status<<T as Hci<E>>::VS>
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
conn_handle: ConnectionHandle,
reason: Status<<T as Hci<E>>::VS>
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn read_remote_version_information(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
fn set_event_mask(&mut self, mask: EventFlags) -> Result<(), Error<E>>
[src]
fn reset(&mut self) -> Result<(), Error<E>>
[src]
fn read_tx_power_level(
&mut self,
conn_handle: ConnectionHandle,
power_level_type: TxPowerLevel
) -> Result<(), Error<E>>
[src]
&mut self,
conn_handle: ConnectionHandle,
power_level_type: TxPowerLevel
) -> Result<(), Error<E>>
fn read_local_version_information(&mut self) -> Result<(), Error<E>>
[src]
fn read_local_supported_commands(&mut self) -> Result<(), Error<E>>
[src]
fn read_local_supported_features(&mut self) -> Result<(), Error<E>>
[src]
fn read_bd_addr(&mut self) -> Result<(), Error<E>>
[src]
fn read_rssi(&mut self, conn_handle: ConnectionHandle) -> Result<(), Error<E>>
[src]
fn le_set_event_mask(
&mut self,
event_mask: LeEventFlags
) -> Result<(), Error<E>>
[src]
&mut self,
event_mask: LeEventFlags
) -> Result<(), Error<E>>
fn le_read_buffer_size(&mut self) -> Result<(), Error<E>>
[src]
fn le_read_local_supported_features(&mut self) -> Result<(), Error<E>>
[src]
fn le_set_random_address(
&mut self,
bd_addr: BdAddr
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
bd_addr: BdAddr
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn le_set_advertising_parameters(
&mut self,
params: &AdvertisingParameters
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
params: &AdvertisingParameters
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn le_read_advertising_channel_tx_power(&mut self) -> Result<(), Error<E>>
[src]
fn le_set_advertising_data(
&mut self,
data: &[u8]
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
data: &[u8]
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn le_set_scan_response_data(
&mut self,
data: &[u8]
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
data: &[u8]
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn le_set_advertise_enable(&mut self, enable: bool) -> Result<(), Error<E>>
[src]
fn le_set_scan_parameters(
&mut self,
params: &ScanParameters
) -> Result<(), Error<E>>
[src]
&mut self,
params: &ScanParameters
) -> Result<(), Error<E>>
fn le_set_scan_enable(
&mut self,
enable: bool,
filter_duplicates: bool
) -> Result<(), Error<E>>
[src]
&mut self,
enable: bool,
filter_duplicates: bool
) -> Result<(), Error<E>>
fn le_create_connection(
&mut self,
params: &ConnectionParameters
) -> Result<(), Error<E>>
[src]
&mut self,
params: &ConnectionParameters
) -> Result<(), Error<E>>
fn le_create_connection_cancel(&mut self) -> Result<(), Error<E>>
[src]
fn le_read_white_list_size(&mut self) -> Result<(), Error<E>>
[src]
fn le_clear_white_list(&mut self) -> Result<(), Error<E>>
[src]
fn le_add_device_to_white_list(
&mut self,
addr: BdAddrType
) -> Result<(), Error<E>>
[src]
&mut self,
addr: BdAddrType
) -> Result<(), Error<E>>
fn le_remove_device_from_white_list(
&mut self,
addr: BdAddrType
) -> Result<(), Error<E>>
[src]
&mut self,
addr: BdAddrType
) -> Result<(), Error<E>>
fn le_connection_update(
&mut self,
params: &ConnectionUpdateParameters
) -> Result<(), Error<E>>
[src]
&mut self,
params: &ConnectionUpdateParameters
) -> Result<(), Error<E>>
fn le_set_host_channel_classification(
&mut self,
channels: ChannelClassification
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
channels: ChannelClassification
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn le_read_channel_map(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
fn le_read_remote_used_features(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
fn le_encrypt(&mut self, params: &AesParameters) -> Result<(), Error<E>>
[src]
fn le_rand(&mut self) -> Result<(), Error<E>>
[src]
fn le_start_encryption(
&mut self,
params: &EncryptionParameters
) -> Result<(), Error<E>>
[src]
&mut self,
params: &EncryptionParameters
) -> Result<(), Error<E>>
fn le_long_term_key_request_reply(
&mut self,
conn_handle: ConnectionHandle,
key: &EncryptionKey
) -> Result<(), Error<E>>
[src]
&mut self,
conn_handle: ConnectionHandle,
key: &EncryptionKey
) -> Result<(), Error<E>>
fn le_long_term_key_request_negative_reply(
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
[src]
&mut self,
conn_handle: ConnectionHandle
) -> Result<(), Error<E>>
fn le_read_supported_states(&mut self) -> Result<(), Error<E>>
[src]
fn le_receiver_test(
&mut self,
channel: u8
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
channel: u8
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn le_transmitter_test(
&mut self,
channel: u8,
payload_length: usize,
payload: TestPacketPayload
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
[src]
&mut self,
channel: u8,
payload_length: usize,
payload: TestPacketPayload
) -> Result<(), Error<Error<E, <T as Hci<E>>::VS>>>
fn le_test_end(&mut self) -> Result<(), Error<E>>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, E> UartController<E> for T where
T: Commands<Error = E> + Commands<Error = E> + Commands<Error = E> + Commands<Error = E> + Hci<E, BlueNRGEvent, BlueNRGError>,
[src]
T: Commands<Error = E> + Commands<Error = E> + Commands<Error = E> + Commands<Error = E> + Hci<E, BlueNRGEvent, BlueNRGError>,