Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AndrewGi/btle
/ functions
Functions
487 in github.com/AndrewGi/btle
⨍
Functions
487
◇
Types & classes
193
Method
read_buffer_size_v2
Returns max number of ACL packets and packet length PLUS Max number of Isochronous packets and packet length.
src/hci/adapters/le.rs:121
Method
read_event
( &'s mut self, )
src/hci/adapter.rs:70
Method
read_event
( &mut self, )
src/hci/stream.rs:172
Method
read_some_acl_bytes
( &mut self, buf: &mut [u8], timeout: Duration, )
src/hci/usb/adapter.rs:159
Method
reset
(&mut self)
src/hci/adapters/mod.rs:89
Function
send_command
Send a HCI Command With `Box`ing overhead, it takes around `150-200us` to send the command and `400-500us` to receive the status. Some commands (like
src/hci/adapter.rs:80
Method
service
(&self)
src/windows/ble/gatt/service.rs:38
Method
set
(&mut self, flag: CharacteristicProperty)
src/windows/ble/gatt/characteristic.rs:140
Method
set_filter
(self: Pin<&mut Self>, filter: &Filter)
src/hci/bluez_socket.rs:307
Method
set_filter_raw
(fd: RawFd, filter: &Filter)
src/hci/bluez_socket.rs:196
Method
set_scan_enable
(&mut self, is_enabled: bool)
src/windows/ble/advertisements/observer.rs:74
Method
set_scan_parameters
( &'a mut self, scan_parameters: scan::ScanParameters, )
src/windows/ble/advertisements/observer.rs:214
Method
set_scan_response_data
(&mut self, data: &[u8])
src/hci/adapters/le.rs:131
Method
set_static_value
(&self, value: &[u8])
src/windows/ble/gatt/characteristic.rs:82
Method
set_user_description
(&self, description: &str)
src/windows/ble/gatt/characteristic.rs:91
Method
source
The lower-level source of this error, if any.
src/error.rs:8
Method
space_left
(&self)
src/bytes.rs:325
Method
start_advertising
(&self)
src/windows/ble/gatt/service.rs:32
Method
static_value
(&self)
src/windows/ble/gatt/characteristic.rs:74
Method
static_value
(&self)
src/windows/ble/gatt/descriptor.rs:22
Method
stop_advertising
(&self)
src/windows/ble/gatt/service.rs:35
Method
suffix
(self)
src/le/att/attribute.rs:59
Method
take_parameters
(self)
src/hci/event.rs:244
Function
test_ad_type_try_into
()
src/le/advertisement.rs:260
Function
test_format
()
src/uuid.rs:175
Method
to_bytes_be
(&self)
src/lib.rs:284
Method
to_bytes_endian
(&self, endian: Option<Endian>)
src/bytes.rs:80
Method
to_bytes_ne
(&self)
src/bytes.rs:58
Method
to_raw_packet
(&self)
src/hci/command.rs:23
Method
to_raw_packet
(&self)
src/hci/event.rs:247
Method
to_str
(&self)
src/le/advertisement_structures/local_name.rs:19
Method
try_from
(value: u8)
src/uri.rs:206
Method
try_from
(value: i8)
src/lib.rs:139
Method
try_from
(value: &[u8])
src/uuid.rs:74
Method
try_from
(value: u8)
src/le/advertisement.rs:67
Method
try_from
(value: u8)
src/le/scan.rs:25
Method
try_from
(value: u8)
src/le/report.rs:27
Method
try_from
(value: Duration)
src/le/advertiser.rs:52
Method
try_from
(value: u8)
src/le/connection/mod.rs:175
Method
try_from
(value: u8)
src/le/advertisement_structures/flags.rs:29
Method
try_from
(value: u8)
src/le/att/mod.rs:58
Method
try_from
(value: u8)
src/le/att/error.rs:132
Method
try_from
(value: u8)
src/hci/mod.rs:90
Method
try_from
(value: u8)
src/hci/packet.rs:29
Method
try_from
(value: &RawPacket<S>)
src/hci/packet.rs:119
Method
try_from
(value: u8)
src/hci/event.rs:91
Method
try_from
Returns `std::io::Error` if it can't bind the `UnixStream` to the tokio Event loop. Usually safe to `.unwrap()/.expect()` unless bad file descriptor.
src/hci/bluez_socket.rs:298
Method
try_from
(ocf: OCF)
src/hci/le/mod.rs:56
Method
try_from
(value: i8)
src/hci/le/advertise.rs:222
Method
try_from
(value: &'a [u8])
src/hci/le/scan.rs:133
Method
try_from
(value: u64)
src/hci/le/mask.rs:44
Method
unpack
(bytes: &[u8])
src/hci/stream.rs:45
Method
unpack
# Errors returns `HCIPackError::BadLength` if `buf.len() != OPCODE_LEN`. returns `HCIPackError::BadBytes` if `buf` doesn't contain a value opcode.
src/hci/mod.rs:395
Method
unpack_command_packet
(packet: &CommandPacket<S>)
src/hci/command.rs:99
Method
unpack_event_packet
(packet: &EventPacket<S>)
src/hci/event.rs:172
Method
unpack_from
(bytes: &[u8])
src/lib.rs:191
Method
unpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement.rs:171
Method
unpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/tx_power_level.rs:41
Method
unpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/mod.rs:47
Method
unpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/local_name.rs:39
Method
unpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/manufacturer_data.rs:35
Method
unpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/flags.rs:53
Method
unpack_from
(buf: &[u8])
src/le/att/pdus/error.rs:32
Method
unpack_from
(buf: &[u8])
src/le/att/pdus/exchange/request.rs:27
Method
unpack_from
(buf: &[u8])
src/le/att/pdus/exchange/response.rs:26
Method
unpack_from
(buf: &[u8])
src/hci/baseband.rs:50
Method
unpack_from
(buf: &[u8])
src/hci/event.rs:329
Method
unpack_from
(buf: &[u8])
src/hci/le/random.rs:26
Method
unpack_from
(buf: &[u8])
src/hci/le/advertise.rs:37
Method
unpack_from
(buf: &[u8])
src/hci/le/scan.rs:37
Method
unpack_from
(buf: &[u8])
src/hci/le/connection.rs:43
Method
unpack_from
(buf: &[u8])
src/hci/le/mask.rs:75
Method
unpack_return
(event: EventPacket<&[u8]>)
src/hci/command.rs:118
Method
user_description
(&self)
src/windows/ble/gatt/characteristic.rs:88
Method
uuid
(&self)
src/windows/ble/gatt/service.rs:48
Method
uuid
(&self)
src/windows/ble/gatt/descriptor.rs:19
Method
uuid_bytes_from_str
(s: &str)
src/uuid.rs:58
Method
with_address
Creates a new `AdvertisingParameters` from `self` with `self.address` set to the `address` parameters.
src/le/advertiser.rs:304
Method
with_capacity
(capacity: usize)
src/windows/ble/advertisements/observer.rs:183
Method
with_interval
Creates a new `AdvertisingParameters` from `self` with `self.interval_min` and `self.interval_max` set to the `interval_min` and `interval_max` parame
src/le/advertiser.rs:318
Method
with_size
(size: usize)
src/bytes.rs:333
Method
write
(&mut self, buf: &[u8])
src/hci/remote.rs:5
Method
write_command
( &'s mut self, packet: CommandPacket<&'p [u8]>, )
src/hci/stream.rs:194
Method
write_command
( &'s mut self, packet: CommandPacket<&'p [u8]>, )
src/hci/usb/adapter.rs:236
Function
yield_now
Yield the task back to the executor. Just returns `Poll::Pending` once and calls `.waker_by_ref()` to put the task back onto the queue. Workaround for
src/hci/usb/adapter.rs:17
Method
zeroed
()
src/hci/baseband.rs:129
Method
zeroed
()
src/hci/le/mask.rs:17
← previous
401–487 of 487, ranked by callers