pub struct DeviceSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DeviceSynchronousProxy
impl DeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DeviceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DeviceEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn register_power_domain(
&self,
min_needed_voltage: u32,
max_supported_voltage: u32,
___deadline: MonotonicInstant,
) -> Result<DeviceRegisterPowerDomainResult, Error>
pub fn register_power_domain( &self, min_needed_voltage: u32, max_supported_voltage: u32, ___deadline: MonotonicInstant, ) -> Result<DeviceRegisterPowerDomainResult, Error>
Register the callee for this power domain. The callee will be registered until UnregisterPowerDomain is called. Any voltage changes to the power domain will be made considering the min_needed_voltage(in uV) and max_supported_voltage(in uV) published here. If voltages mentioned are out of supported voltage range of domain(obtained by calling GetSupportedVoltageRange), the callee will be registered with the supported voltage range.
Sourcepub fn unregister_power_domain(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceUnregisterPowerDomainResult, Error>
pub fn unregister_power_domain( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceUnregisterPowerDomainResult, Error>
Unregister the callee for this power domain. The callee will no longer be considered as a dependent of this power domain.
Sourcepub fn get_supported_voltage_range(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceGetSupportedVoltageRangeResult, Error>
pub fn get_supported_voltage_range( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceGetSupportedVoltageRangeResult, Error>
Get Supported Voltage Range. min and max are in micorVolts(uV)
Sourcepub fn request_voltage(
&self,
voltage: u32,
___deadline: MonotonicInstant,
) -> Result<DeviceRequestVoltageResult, Error>
pub fn request_voltage( &self, voltage: u32, ___deadline: MonotonicInstant, ) -> Result<DeviceRequestVoltageResult, Error>
Request a particular voltage. The actual_voltage is the voltage that the power domain is transitioned to after considering supported voltage ranges of all the registered dependents. “voltage” should be in uV.
Sourcepub fn get_current_voltage(
&self,
index: u32,
___deadline: MonotonicInstant,
) -> Result<DeviceGetCurrentVoltageResult, Error>
pub fn get_current_voltage( &self, index: u32, ___deadline: MonotonicInstant, ) -> Result<DeviceGetCurrentVoltageResult, Error>
Get current voltage in uV.
Sourcepub fn get_power_domain_status(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceGetPowerDomainStatusResult, Error>
pub fn get_power_domain_status( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceGetPowerDomainStatusResult, Error>
Get power domain status
Sourcepub fn write_pmic_ctrl_reg(
&self,
reg_addr: u32,
value: u32,
___deadline: MonotonicInstant,
) -> Result<DeviceWritePmicCtrlRegResult, Error>
pub fn write_pmic_ctrl_reg( &self, reg_addr: u32, value: u32, ___deadline: MonotonicInstant, ) -> Result<DeviceWritePmicCtrlRegResult, Error>
Write to ctrl register of PMIC
Sourcepub fn read_pmic_ctrl_reg(
&self,
reg_addr: u32,
___deadline: MonotonicInstant,
) -> Result<DeviceReadPmicCtrlRegResult, Error>
pub fn read_pmic_ctrl_reg( &self, reg_addr: u32, ___deadline: MonotonicInstant, ) -> Result<DeviceReadPmicCtrlRegResult, Error>
Read ctrl register of PMIC
Trait Implementations§
Source§impl Debug for DeviceSynchronousProxy
impl Debug for DeviceSynchronousProxy
Source§impl From<Channel> for DeviceSynchronousProxy
impl From<Channel> for DeviceSynchronousProxy
Source§impl From<DeviceSynchronousProxy> for Handle
impl From<DeviceSynchronousProxy> for Handle
Source§fn from(value: DeviceSynchronousProxy) -> Self
fn from(value: DeviceSynchronousProxy) -> Self
Source§impl FromClient for DeviceSynchronousProxy
impl FromClient for DeviceSynchronousProxy
Source§type Protocol = DeviceMarker
type Protocol = DeviceMarker
Source§fn from_client(value: ClientEnd<DeviceMarker>) -> Self
fn from_client(value: ClientEnd<DeviceMarker>) -> Self
Source§impl SynchronousProxy for DeviceSynchronousProxy
impl SynchronousProxy for DeviceSynchronousProxy
Source§type Proxy = DeviceProxy
type Proxy = DeviceProxy
Source§type Protocol = DeviceMarker
type Protocol = DeviceMarker
Proxy
controls.