#[repr(C, align(4))]pub struct pt_packet_pwrx {
pub last: u8,
pub deepest: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: u8,
}Expand description
A PWRX packet.
Fields§
§last: u8The core C-state at the time of the wake.
deepest: u8The deepest core C-state achieved during sleep.
_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: u8Implementations§
Source§impl pt_packet_pwrx
impl pt_packet_pwrx
pub fn interrupt(&self) -> u32
pub fn set_interrupt(&mut self, val: u32)
pub unsafe fn interrupt_raw(this: *const Self) -> u32
pub unsafe fn set_interrupt_raw(this: *mut Self, val: u32)
pub fn store(&self) -> u32
pub fn set_store(&mut self, val: u32)
pub unsafe fn store_raw(this: *const Self) -> u32
pub unsafe fn set_store_raw(this: *mut Self, val: u32)
pub fn autonomous(&self) -> u32
pub fn set_autonomous(&mut self, val: u32)
pub unsafe fn autonomous_raw(this: *const Self) -> u32
pub unsafe fn set_autonomous_raw(this: *mut Self, val: u32)
pub fn new_bitfield_1( interrupt: u32, store: u32, autonomous: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for pt_packet_pwrx
impl Clone for pt_packet_pwrx
Source§fn clone(&self) -> pt_packet_pwrx
fn clone(&self) -> pt_packet_pwrx
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for pt_packet_pwrx
impl Debug for pt_packet_pwrx
impl Copy for pt_packet_pwrx
Auto Trait Implementations§
impl Freeze for pt_packet_pwrx
impl RefUnwindSafe for pt_packet_pwrx
impl Send for pt_packet_pwrx
impl Sync for pt_packet_pwrx
impl Unpin for pt_packet_pwrx
impl UnwindSafe for pt_packet_pwrx
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