pub struct GenericCommunicationsChannelCommandField(/* private fields */);Expand description
§Generic Communications Channel Command Field
For channels of type 0 to 2, this 16-bit field is used to select one of the defined commands for the platform to perform. OSPM is responsible for populating this field before each command invocation.
Implementations§
Source§impl GenericCommunicationsChannelCommandField
impl GenericCommunicationsChannelCommandField
Sourcepub const fn command(&self) -> u8
pub const fn command(&self) -> u8
Command code to execute.
Command codes are application specific and defined by the consumer of this interface.
Sourcepub const fn notify_on_completion(&self) -> bool
pub const fn notify_on_completion(&self) -> bool
If set, the platform should generate a Doorbell interrupt at the completion of this command. The interrupt is an SCI for a Type 0 subspace structure, or as described by the Doorbell Interrupt field for Type 1 and Type 2 subspace structures. If the Doorbell bit is not set in the PCC global flags, this bit must be cleared.
Trait Implementations§
Source§impl Clone for GenericCommunicationsChannelCommandField
impl Clone for GenericCommunicationsChannelCommandField
Source§fn clone(&self) -> GenericCommunicationsChannelCommandField
fn clone(&self) -> GenericCommunicationsChannelCommandField
Returns a duplicate 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 moreimpl Copy for GenericCommunicationsChannelCommandField
Auto Trait Implementations§
impl Freeze for GenericCommunicationsChannelCommandField
impl RefUnwindSafe for GenericCommunicationsChannelCommandField
impl Send for GenericCommunicationsChannelCommandField
impl Sync for GenericCommunicationsChannelCommandField
impl Unpin for GenericCommunicationsChannelCommandField
impl UnwindSafe for GenericCommunicationsChannelCommandField
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