pub struct ReprogControlsFeature { /* private fields */ }Expand description
Implements the SpecialKeysMseButtons / 0x1b04 feature.
Implementations§
Source§impl ReprogControlsFeature
impl ReprogControlsFeature
Sourcepub async fn get_count(&self) -> Result<u8, Hidpp20Error>
pub async fn get_count(&self) -> Result<u8, Hidpp20Error>
Returns the number of rows in the control ID table.
Sourcepub async fn get_cid_info(&self, index: u8) -> Result<CidInfo, Hidpp20Error>
pub async fn get_cid_info(&self, index: u8) -> Result<CidInfo, Hidpp20Error>
Returns one row from the control ID table.
Sourcepub async fn get_cid_reporting(
&self,
cid: ControlId,
) -> Result<CidReporting, Hidpp20Error>
pub async fn get_cid_reporting( &self, cid: ControlId, ) -> Result<CidReporting, Hidpp20Error>
Returns the current reporting/remapping state for cid.
Sourcepub async fn set_cid_reporting(
&self,
cid: ControlId,
change: CidReportingChange,
) -> Result<CidReportingChangeEcho, Hidpp20Error>
pub async fn set_cid_reporting( &self, cid: ControlId, change: CidReportingChange, ) -> Result<CidReportingChangeEcho, Hidpp20Error>
Applies reporting/remapping changes for cid.
Optional boolean fields in CidReportingChange map to the corresponding
*-valid bit in Logitech’s packet. Fields set to None are left
unchanged by the device. Remapping is carried as a value field rather
than a valid/value pair; None sends the documented 0 value.
Sourcepub async fn get_capabilities(
&self,
) -> Result<ReprogControlsCapabilities, Hidpp20Error>
pub async fn get_capabilities( &self, ) -> Result<ReprogControlsCapabilities, Hidpp20Error>
Returns feature-level capabilities.
This function exists on v6 devices. Older firmware may return
InvalidFunctionId.
Sourcepub async fn reset_all_cid_report_settings(&self) -> Result<(), Hidpp20Error>
pub async fn reset_all_cid_report_settings(&self) -> Result<(), Hidpp20Error>
Resets all diverted or remapped control settings.
This function exists on v6 devices that report
ReprogControlsCapabilities::reset_all_cid_report_settings.
Trait Implementations§
Source§impl CreatableFeature for ReprogControlsFeature
impl CreatableFeature for ReprogControlsFeature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
Source§impl EmittingFeature<ReprogControlsEvent> for ReprogControlsFeature
impl EmittingFeature<ReprogControlsEvent> for ReprogControlsFeature
Source§fn listen(&self) -> Receiver<ReprogControlsEvent>
fn listen(&self) -> Receiver<ReprogControlsEvent>
T is emitted by the feature.