Struct joycon_sys::mcu::ir::Register
source · #[repr(packed(1))]pub struct Register { /* private fields */ }Implementations§
source§impl Register
impl Register
pub fn decode_raw<'a>( page: u8, base_offset: u8, values: &'a [u8] ) -> impl Iterator<Item = Register> + 'a
pub fn page(self) -> u8
pub fn same_address(self, other: Register) -> bool
pub fn resolution(resolution: Resolution) -> Register
pub fn exposure_us(exposure: u32) -> [Register; 2]
pub fn exposure_mode(mode: ExposureMode) -> Register
pub fn digital_gain(gain: u16) -> [Register; 2]
pub fn ir_leds(leds: Leds) -> Register
pub fn external_light_filter(filter: ExternalLightFilter) -> Register
pub fn white_pixel_threshold(threshold: u8) -> Register
pub fn leds_intensity(far: u8, near: u8) -> [Register; 2]
pub fn flip(side: Flip) -> Register
pub fn denoise(enabled: bool) -> Register
sourcepub fn edge_smoothing_threshold(threshold: u8) -> Register
pub fn edge_smoothing_threshold(threshold: u8) -> Register
default: 0x23
pub fn color_interpolation_threshold(threshold: u8) -> Register
pub fn buffer_update_time(time: u8) -> Register
pub fn finish() -> Register
Trait Implementations§
source§impl PartialEq for Register
impl PartialEq for Register
impl Copy for Register
impl Eq for Register
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
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