Struct hvm_hw_vpic

Source
#[repr(C)]
pub struct hvm_hw_vpic { pub irr: u8, pub imr: u8, pub isr: u8, pub irq_base: u8, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub elcr: u8, pub int_output: u8, }

Fields§

§irr: u8§imr: u8§isr: u8§irq_base: u8§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§elcr: u8§int_output: u8

Implementations§

Source§

impl hvm_hw_vpic

Source

pub fn init_state(&self) -> u8

Source

pub fn set_init_state(&mut self, val: u8)

Source

pub unsafe fn init_state_raw(this: *const Self) -> u8

Source

pub unsafe fn set_init_state_raw(this: *mut Self, val: u8)

Source

pub fn priority_add(&self) -> u8

Source

pub fn set_priority_add(&mut self, val: u8)

Source

pub unsafe fn priority_add_raw(this: *const Self) -> u8

Source

pub unsafe fn set_priority_add_raw(this: *mut Self, val: u8)

Source

pub fn readsel_isr(&self) -> u8

Source

pub fn set_readsel_isr(&mut self, val: u8)

Source

pub unsafe fn readsel_isr_raw(this: *const Self) -> u8

Source

pub unsafe fn set_readsel_isr_raw(this: *mut Self, val: u8)

Source

pub fn poll(&self) -> u8

Source

pub fn set_poll(&mut self, val: u8)

Source

pub unsafe fn poll_raw(this: *const Self) -> u8

Source

pub unsafe fn set_poll_raw(this: *mut Self, val: u8)

Source

pub fn auto_eoi(&self) -> u8

Source

pub fn set_auto_eoi(&mut self, val: u8)

Source

pub unsafe fn auto_eoi_raw(this: *const Self) -> u8

Source

pub unsafe fn set_auto_eoi_raw(this: *mut Self, val: u8)

Source

pub fn rotate_on_auto_eoi(&self) -> u8

Source

pub fn set_rotate_on_auto_eoi(&mut self, val: u8)

Source

pub unsafe fn rotate_on_auto_eoi_raw(this: *const Self) -> u8

Source

pub unsafe fn set_rotate_on_auto_eoi_raw(this: *mut Self, val: u8)

Source

pub fn special_fully_nested_mode(&self) -> u8

Source

pub fn set_special_fully_nested_mode(&mut self, val: u8)

Source

pub unsafe fn special_fully_nested_mode_raw(this: *const Self) -> u8

Source

pub unsafe fn set_special_fully_nested_mode_raw(this: *mut Self, val: u8)

Source

pub fn special_mask_mode(&self) -> u8

Source

pub fn set_special_mask_mode(&mut self, val: u8)

Source

pub unsafe fn special_mask_mode_raw(this: *const Self) -> u8

Source

pub unsafe fn set_special_mask_mode_raw(this: *mut Self, val: u8)

Source

pub fn is_master(&self) -> u8

Source

pub fn set_is_master(&mut self, val: u8)

Source

pub unsafe fn is_master_raw(this: *const Self) -> u8

Source

pub unsafe fn set_is_master_raw(this: *mut Self, val: u8)

Source

pub fn new_bitfield_1( init_state: u8, priority_add: u8, readsel_isr: u8, poll: u8, auto_eoi: u8, rotate_on_auto_eoi: u8, special_fully_nested_mode: u8, special_mask_mode: u8, is_master: u8, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

Source§

impl Clone for hvm_hw_vpic

Source§

fn clone(&self) -> hvm_hw_vpic

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for hvm_hw_vpic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for hvm_hw_vpic

Source§

fn default() -> hvm_hw_vpic

Returns the “default value” for a type. Read more
Source§

impl Copy for hvm_hw_vpic

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.