pub enum DeviceRequest {
GetEssentialParams {
responder: DeviceGetEssentialParamsResponder,
},
SetEssentialParams {
params: [u8; 48],
responder: DeviceSetEssentialParamsResponder,
},
GetConfig {
responder: DeviceGetConfigResponder,
},
SetProcessedFifoData {
data: [u8; 152],
responder: DeviceSetProcessedFifoDataResponder,
},
GetStepAndJeitaParams {
responder: DeviceGetStepAndJeitaParamsResponder,
},
GetBatteryConfig {
responder: DeviceGetBatteryConfigResponder,
},
GetBatteryProfile {
request: [u8; 8],
responder: DeviceGetBatteryProfileResponder,
},
GetIioValue {
label: String,
responder: DeviceGetIioValueResponder,
},
}
Expand description
Used by driver to interface with Starnix and speak to the hvdcp_opti daemon.
Variants§
GetEssentialParams
Fields
§
responder: DeviceGetEssentialParamsResponder
SetEssentialParams
GetConfig
Fields
§
responder: DeviceGetConfigResponder
SetProcessedFifoData
GetStepAndJeitaParams
Fields
§
responder: DeviceGetStepAndJeitaParamsResponder
GetBatteryConfig
Fields
§
responder: DeviceGetBatteryConfigResponder
GetBatteryProfile
GetIioValue
Gets Industrial I/O (IIO) reading value. Values available depend on what the server supports. May overlap with other configs in fuchsia.power.battery, but will be cleaned up with sysfs cleanup.
Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_get_essential_params( self, ) -> Option<DeviceGetEssentialParamsResponder>
pub fn into_set_essential_params( self, ) -> Option<([u8; 48], DeviceSetEssentialParamsResponder)>
pub fn into_get_config(self) -> Option<DeviceGetConfigResponder>
pub fn into_set_processed_fifo_data( self, ) -> Option<([u8; 152], DeviceSetProcessedFifoDataResponder)>
pub fn into_get_step_and_jeita_params( self, ) -> Option<DeviceGetStepAndJeitaParamsResponder>
pub fn into_get_battery_config(self) -> Option<DeviceGetBatteryConfigResponder>
pub fn into_get_battery_profile( self, ) -> Option<([u8; 8], DeviceGetBatteryProfileResponder)>
pub fn into_get_iio_value(self) -> Option<(String, DeviceGetIioValueResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceRequest
impl !RefUnwindSafe for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl !UnwindSafe for DeviceRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more