pub struct BLEHIDDevice { /* private fields */ }Implementations§
Source§impl BLEHIDDevice
impl BLEHIDDevice
pub fn new(server: &mut BLEServer) -> Self
Sourcepub fn report_map(&mut self, map: &[u8])
pub fn report_map(&mut self, map: &[u8])
Sets the Plug n Play characteristic value.
pub fn manufacturer(&mut self, name: &str)
pub fn pnp(&mut self, sig: u8, vid: u16, pid: u16, version: u16)
Sourcepub fn hid_info(&mut self, country: u8, flags: u8)
pub fn hid_info(&mut self, country: u8, flags: u8)
Sets the HID Information characteristic value.1
Sourcepub fn input_report(&mut self, report_id: u8) -> Arc<Mutex<BLECharacteristic>>
pub fn input_report(&mut self, report_id: u8) -> Arc<Mutex<BLECharacteristic>>
Create input report characteristic
pub fn output_report(&mut self, report_id: u8) -> Arc<Mutex<BLECharacteristic>>
pub fn feature_report(&mut self, report_id: u8) -> Arc<Mutex<BLECharacteristic>>
Sourcepub fn boot_input(&self) -> Arc<Mutex<BLECharacteristic>>
pub fn boot_input(&self) -> Arc<Mutex<BLECharacteristic>>
Creates a keyboard boot input report characteristic
Sourcepub fn boot_output(&self) -> Arc<Mutex<BLECharacteristic>>
pub fn boot_output(&self) -> Arc<Mutex<BLECharacteristic>>
Creates a keyboard boot input report characteristic
Sourcepub fn hid_control(&self) -> &Arc<Mutex<BLECharacteristic>>
pub fn hid_control(&self) -> &Arc<Mutex<BLECharacteristic>>
Returns the HID control point characteristic.
Sourcepub fn protocol_mode(&self) -> &Arc<Mutex<BLECharacteristic>>
pub fn protocol_mode(&self) -> &Arc<Mutex<BLECharacteristic>>
Returns the protocol mode characteristic.
Sourcepub fn set_battery_level(&mut self, level: u8)
pub fn set_battery_level(&mut self, level: u8)
Set the battery level characteristic value.
Sourcepub fn hid_service(&self) -> &Arc<Mutex<BLEService>>
pub fn hid_service(&self) -> &Arc<Mutex<BLEService>>
Returns a pointer to the HID service.
Auto Trait Implementations§
impl Freeze for BLEHIDDevice
impl !RefUnwindSafe for BLEHIDDevice
impl Send for BLEHIDDevice
impl Sync for BLEHIDDevice
impl Unpin for BLEHIDDevice
impl UnsafeUnpin for BLEHIDDevice
impl !UnwindSafe for BLEHIDDevice
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more