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
is_none
(&self)
src/windows/ble/gatt/characteristic.rs:156
Method
is_nop
(self)
src/hci/mod.rs:406
Method
is_ok
(self)
src/hci/mod.rs:169
Method
is_set
(self, flag: CharacteristicProperty)
src/windows/ble/gatt/characteristic.rs:137
Method
len
(&self)
src/bytes.rs:328
Function
main
()
examples/advertisement_dump.rs:9
Function
main
()
examples/windows_test.rs:4
Function
main
()
examples/windows_gatt_test.rs:4
Function
main
()
examples/advertise_test.rs:9
Function
main
()
examples/usb_test.rs:8
Method
max_len
()
src/bytes.rs:348
Method
max_size
Returns the maximum size the `StaticBuf` can hold. # Examples ``` use btle::bytes::StaticBuf; assert_eq!(StaticBuf::<u8, [u8; 10]>::max_size(), 10); a
src/bytes.rs:220
Method
maybe_rssi
(val: i8)
src/lib.rs:117
Method
meta_event_stream
Enables `RawMetaEvents` from the HCI (using an event mask) and returns a Stream of them.
src/hci/adapters/le.rs:189
Method
meta_pack_into
(&self, buf: &mut [u8])
src/hci/le/report.rs:110
Method
meta_unpack_from
(buf: &[u8])
src/hci/le/report.rs:48
Method
meta_unpack_packet
(packet: RawMetaEvent<&[u8]>)
src/hci/le/mod.rs:207
Method
name
(&self)
src/windows/ble/gatt/device.rs:13
Method
native
Returns the target platform `Endian`. This is a NOP const fn.
src/bytes.rs:25
Method
new
(index: u8)
src/channel.rs:8
Method
new
Creates a new RSSI from `dbm`. # Panics Panics if `dbm < MIN_RSSI || dbm > MAX_RSSI`.
src/lib.rs:108
Method
new
(uuid_short: u16)
src/uuid.rs:149
Method
new
()
src/bytes.rs:206
Method
new
()
src/windows/ble/gatt/characteristic.rs:68
Method
new
(uuid: &UUID)
src/windows/ble/gatt/service.rs:25
Method
new
(mut callback: Callback)
src/windows/ble/advertisements/observer.rs:54
Method
new
()
src/dbus/session.rs:8
Method
new
(ad_type: AdType, buf: StructBuf)
src/le/advertisement.rs:143
Method
new
(interval: u16)
src/le/scan.rs:48
Method
new
(num_reports: u8)
src/le/report.rs:11
Method
new
Creates a new `AdvertisingInterval`. # Panics Panics if `interval < AdvertisingInterval::MIN_U16 || interval > AdvertisingInterval::MAX_U16`.
src/le/advertiser.rs:26
Method
new
(value: u16)
src/le/connection/mod.rs:16
Method
new
(dbm: i8)
src/le/advertisement_structures/tx_power_level.rs:20
Method
new
(name: Buf)
src/le/advertisement_structures/local_name.rs:14
Method
new
(company_id: CompanyID, data: Buf)
src/le/advertisement_structures/manufacturer_data.rs:14
Method
new
Creates a new `ApplicationError`. # Panics Panics if `error_code` isn't between the bounds of [`ApplicationError::MIN_U8'] (`0x80`) and [`ApplicationE
src/le/att/error.rs:14
Method
new
(handle: u16)
src/le/att/attribute.rs:8
Method
new
(stream: Pin<B>)
src/hci/stream.rs:153
Method
new
Creates a new 10-bit OCF # Panics Panics if `ocf > OCF_MAX` (if `ocf` isn't 10-bit)
src/hci/mod.rs:363
Method
new
(stream: net::TcpStream)
src/hci/remote.rs:19
Method
new
(opcode: EventCode, parameters: Storage)
src/hci/event.rs:226
Method
new
()
src/hci/bluez_socket.rs:240
Method
new
()
src/hci/adapters/buffer.rs:11
Method
new
()
src/hci/adapters/mod.rs:20
Method
new
(adapter: Adapter<A, H>)
src/hci/adapters/le.rs:32
Method
new
(data: &[u8])
src/hci/le/advertise.rs:86
Method
new
(parameters: ScanParameters)
src/hci/le/scan.rs:63
Method
new
(reports: T)
src/hci/le/report.rs:24
Method
new
(mask: u64)
src/hci/le/mask.rs:20
Method
new_channel
Creates an `HCISocket` based on a `libc` file_descriptor (`i32`). Returns an error if could not bind to the `adapter_id`.
src/hci/bluez_socket.rs:158
Method
new_checked
(index: u8)
src/channel.rs:12
Method
new_checked
(value: u16)
src/le/connection/mod.rs:22
Method
new_checked
Creates a new `ApplicationError`. If `error_code` isn't between the bounds of [`ApplicationError::MIN_U8'] (`0x80`) and [`ApplicationError::MAX_U8`] (
src/le/att/error.rs:25
Method
new_clamped
(index: u8)
src/channel.rs:19
Method
new_masked
Creates a new 10-bit OCF by masking a u16
src/hci/mod.rs:368
Method
new_unchecked
(stream: UnixStream)
src/hci/bluez_socket.rs:185
Method
new_with_handler
(adapter: A, event_handler: H)
src/hci/adapters/mod.rs:48
Method
next
(&mut self)
src/le/advertisement.rs:235
Method
next
(&mut self)
src/hci/adapters/buffer.rs:41
Method
nop
()
src/hci/mod.rs:403
Method
ogf
()
src/hci/link_control.rs:31
Method
ogf
()
src/hci/le/mod.rs:94
Method
opcode
(&self)
src/hci/stream.rs:110
Method
opcode
()
src/hci/baseband.rs:38
Method
opcode
()
src/hci/le/random.rs:14
Method
opcode
()
src/hci/le/advertise.rs:23
Method
opcode
()
src/hci/le/scan.rs:22
Method
opcode
()
src/hci/le/connection.rs:31
Method
opcode
()
src/hci/le/mask.rs:61
Method
opcode_mut
(&mut self)
src/hci/stream.rs:113
Method
pack
(&self)
src/hci/stream.rs:35
Method
pack
(&self)
src/hci/packet.rs:71
Method
pack_as_raw_packet
(&self)
src/hci/command.rs:37
Method
pack_command_packet
(&self)
src/hci/command.rs:87
Method
pack_into
(self, bytes: &mut [u8])
src/lib.rs:195
Method
pack_into
(&self, buf: &mut [u8])
src/le/advertisement_structures/tx_power_level.rs:34
Method
pack_into
(&self, buf: &mut [u8])
src/le/advertisement_structures/mod.rs:37
Method
pack_into
(&self, buf: &mut [u8])
src/le/advertisement_structures/local_name.rs:32
Method
pack_into
(&self, buf: &mut [u8])
src/le/advertisement_structures/manufacturer_data.rs:27
Method
pack_into
(&self, buf: &mut [u8])
src/le/advertisement_structures/flags.rs:46
Method
pack_into
(&self, buf: &mut [u8])
src/le/att/pdus/error.rs:23
Method
pack_into
(&self, buf: &mut [u8])
src/le/att/pdus/exchange/request.rs:20
Method
pack_into
(&self, buf: &mut [u8])
src/le/att/pdus/exchange/response.rs:19
Method
pack_into
(&self, buf: &mut [u8])
src/hci/baseband.rs:46
Method
pack_into
(&self, buf: &mut [u8])
src/hci/le/random.rs:22
Method
pack_into
(&self, buf: &mut [u8])
src/hci/le/advertise.rs:31
Method
pack_into
(&self, buf: &mut [u8])
src/hci/le/connection.rs:39
Method
pack_into
(&self, buf: &mut [u8])
src/hci/le/mask.rs:69
Method
pack_into_storage
(&self)
src/le/advertisement.rs:121
Method
packet_pack_full
Pack a buffer with a full packet (`self.packet_pack_into` + `PacketType`). Automatically trims `buf` to the correct len.
src/hci/packet.rs:111
Method
poll
( mut self: core::pin::Pin<&mut Self>, cx: &mut core::task::Context<'_>, )
src/hci/usb/adapter.rs:25
Method
poll_next
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
src/windows/ble/advertisements/observer.rs:202
Method
poll_read
( mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8], )
src/hci/bluez_socket.rs:316
Method
ppm
Returns the clock PPM as a `u16` # Example ``` use btle::le::connection::MasterClockAccuracy; assert_eq!(MasterClockAccuracy::PPM20.ppm(), 20_u16); as
src/le/connection/mod.rs:229
Method
private_address_parts
Returns `hash` (24-bit) and `prand` (24-bit) of the resolvable private address. `prand` includes the address type bits.
src/lib.rs:212
Method
protocol_error
(&self)
src/windows/ble/gatt/service.rs:18
Method
raw_device_down
(ctl_fd: i32, adapter_id: AdapterID)
src/hci/bluez_socket.rs:267
Method
raw_device_up
(ctl_fd: i32, adapter_id: AdapterID)
src/hci/bluez_socket.rs:274
Method
read
(&mut self, buf: &mut [u8])
src/hci/remote.rs:14
Method
read_buffer_size_v1
Returns Max number of ACL Packets and Packet length.
src/hci/adapters/le.rs:109
← previous
next →
301–400 of 487, ranked by callers