MCPcopy Create free account
hub / github.com/FrameworkComputer/framework-system / hid_err

Function hid_err

framework_lib/src/touchpad.rs:58–62  ·  view source on GitHub ↗
(message: impl Into<String>)

Source from the content-addressed store, hash-verified

56// to GET_FEATURE, so both controls are write-only.
57
58fn hid_err(message: impl Into<String>) -> HidError {
59 HidError::HidApiError {
60 message: message.into(),
61 }
62}
63
64pub fn set_haptic_intensity(value: u8) -> Result<(), HidError> {
65 if !HAPTIC_INTENSITY_LEVELS.contains(&value) {

Callers 2

set_haptic_intensityFunction · 0.85
set_click_forceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected