pub struct PeripheralInfoBuilder { /* private fields */ }Expand description
Builder for Peripheral
Implementations§
Source§impl PeripheralInfoBuilder
impl PeripheralInfoBuilder
Sourcepub fn display_name(self, value: Option<String>) -> Self
pub fn display_name(self, value: Option<String>) -> Self
Set the display name of the peripheral
Sourcepub fn description(self, value: Option<String>) -> Self
pub fn description(self, value: Option<String>) -> Self
Set the description of the peripheral
Sourcepub fn alternate_peripheral(self, value: Option<String>) -> Self
pub fn alternate_peripheral(self, value: Option<String>) -> Self
Set the alternate peripheral
Sourcepub fn group_name(self, value: Option<String>) -> Self
pub fn group_name(self, value: Option<String>) -> Self
Set the group name of the peripheral
Sourcepub fn prepend_to_name(self, value: Option<String>) -> Self
pub fn prepend_to_name(self, value: Option<String>) -> Self
Set the prefix for names of all registers of the peripheral
Sourcepub fn append_to_name(self, value: Option<String>) -> Self
pub fn append_to_name(self, value: Option<String>) -> Self
Set the suffix for names of all registers of the peripheral
Sourcepub fn header_struct_name(self, value: Option<String>) -> Self
pub fn header_struct_name(self, value: Option<String>) -> Self
Set the header struct name of the peripheral
Sourcepub fn base_address(self, value: u64) -> Self
pub fn base_address(self, value: u64) -> Self
Set the base address of the peripheral
Sourcepub fn default_register_properties(self, value: RegisterProperties) -> Self
pub fn default_register_properties(self, value: RegisterProperties) -> Self
Set the default register properties of the peripheral
Sourcepub fn address_block(self, value: Option<Vec<AddressBlock>>) -> Self
pub fn address_block(self, value: Option<Vec<AddressBlock>>) -> Self
Set the address block of the peripheral
Sourcepub fn interrupt(self, value: Option<Vec<Interrupt>>) -> Self
pub fn interrupt(self, value: Option<Vec<Interrupt>>) -> Self
Set the interrupts of the peripheral
Sourcepub fn registers(self, value: Option<Vec<RegisterCluster>>) -> Self
pub fn registers(self, value: Option<Vec<RegisterCluster>>) -> Self
Set the registers of the peripheral
Sourcepub fn derived_from(self, value: Option<String>) -> Self
pub fn derived_from(self, value: Option<String>) -> Self
Set the derived_from attribute of the peripheral
Sourcepub fn build(self, lvl: ValidateLevel) -> Result<PeripheralInfo, SvdError>
pub fn build(self, lvl: ValidateLevel) -> Result<PeripheralInfo, SvdError>
Validate and build a PeripheralInfo.
Trait Implementations§
Source§impl Clone for PeripheralInfoBuilder
impl Clone for PeripheralInfoBuilder
Source§fn clone(&self) -> PeripheralInfoBuilder
fn clone(&self) -> PeripheralInfoBuilder
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 moreSource§impl Debug for PeripheralInfoBuilder
impl Debug for PeripheralInfoBuilder
Source§impl Default for PeripheralInfoBuilder
impl Default for PeripheralInfoBuilder
Source§fn default() -> PeripheralInfoBuilder
fn default() -> PeripheralInfoBuilder
Returns the “default value” for a type. Read more
Source§impl From<PeripheralInfo> for PeripheralInfoBuilder
impl From<PeripheralInfo> for PeripheralInfoBuilder
Source§fn from(p: PeripheralInfo) -> Self
fn from(p: PeripheralInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PeripheralInfoBuilder
impl PartialEq for PeripheralInfoBuilder
impl StructuralPartialEq for PeripheralInfoBuilder
Auto Trait Implementations§
impl Freeze for PeripheralInfoBuilder
impl RefUnwindSafe for PeripheralInfoBuilder
impl Send for PeripheralInfoBuilder
impl Sync for PeripheralInfoBuilder
impl Unpin for PeripheralInfoBuilder
impl UnwindSafe for PeripheralInfoBuilder
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