pub struct VChip<'a, 'b, 'c>where
'b: 'a,
'c: 'b,{ /* private fields */ }Expand description
Virtual chip of the DCMI
Implementations§
Source§impl<'a, 'b, 'c> VChip<'a, 'b, 'c>where
'b: 'a,
'c: 'b,
impl<'a, 'b, 'c> VChip<'a, 'b, 'c>where
'b: 'a,
'c: 'b,
Sourcepub fn new_unchecked(chip: &'a Chip<'b, 'c>, id: u32, vfg_id: u32) -> Self
pub fn new_unchecked(chip: &'a Chip<'b, 'c>, id: u32, vfg_id: u32) -> Self
Create a new virtual chip
§Warning
It is your responsibility to ensure that the virtual chip ID is valid
Sourcepub fn create(
chip: &'a Chip<'b, 'c>,
param: VChipCreateParam,
) -> DCMIResult<(VChipOutput, Self)>
pub fn create( chip: &'a Chip<'b, 'c>, param: VChipCreateParam, ) -> DCMIResult<(VChipOutput, Self)>
Sourcepub fn destroy_all(chip: &'a Chip<'b, 'c>) -> DCMIResult<()>
pub fn destroy_all(chip: &'a Chip<'b, 'c>) -> DCMIResult<()>
Source§impl VChip<'_, '_, '_>
impl VChip<'_, '_, '_>
Sourcepub fn set_compute_power_splitting_mode(
_dcmi: &DCMI,
mode: VChipPowerSplittingMode,
) -> DCMIResult<()>
pub fn set_compute_power_splitting_mode( _dcmi: &DCMI, mode: VChipPowerSplittingMode, ) -> DCMIResult<()>
Sourcepub fn get_compute_power_splitting_mode(
_dcmi: &DCMI,
) -> DCMIResult<VChipPowerSplittingMode>
pub fn get_compute_power_splitting_mode( _dcmi: &DCMI, ) -> DCMIResult<VChipPowerSplittingMode>
Sourcepub fn set_recovery_mode(_dcmi: &DCMI, mode: bool) -> DCMIResult<()>
pub fn set_recovery_mode(_dcmi: &DCMI, mode: bool) -> DCMIResult<()>
Set the vchip configuration recover mode
§Parameters
- mode: vchip configuration recover mode (0: disable, 1: enable)
Sourcepub fn get_recovery_mode(_dcmi: &DCMI) -> DCMIResult<bool>
pub fn get_recovery_mode(_dcmi: &DCMI) -> DCMIResult<bool>
Query the vchip configuration recover mode
§Returns
vchip configuration recover mode (0: disable, 1: enable)
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, 'c> Freeze for VChip<'a, 'b, 'c>
impl<'a, 'b, 'c> !RefUnwindSafe for VChip<'a, 'b, 'c>
impl<'a, 'b, 'c> !Send for VChip<'a, 'b, 'c>
impl<'a, 'b, 'c> !Sync for VChip<'a, 'b, 'c>
impl<'a, 'b, 'c> Unpin for VChip<'a, 'b, 'c>
impl<'a, 'b, 'c> UnsafeUnpin for VChip<'a, 'b, 'c>
impl<'a, 'b, 'c> !UnwindSafe for VChip<'a, 'b, 'c>
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