Struct drone_svd::Config [−][src]
Options to configure how bindings are generated.
Implementations
impl<'a> Config<'a>
[src]
pub fn new(macro_name: &'a str) -> Self
[src]
Creates a blank new set of options ready for configuration.
pub fn exclude_peripherals(
&mut self,
exclude_peripherals: &[&'a str]
) -> &mut Self
[src]
&mut self,
exclude_peripherals: &[&'a str]
) -> &mut Self
Extends the list of peripherals to exclude from generated bindings.
pub fn bit_band(&mut self, bit_band: Range<u32>) -> &mut Self
[src]
Sets bit-band memory region.
pub fn generate_regs(
self,
output: &mut File,
device: Device,
pool_number: usize,
pool_size: usize
) -> Result<()>
[src]
self,
output: &mut File,
device: Device,
pool_number: usize,
pool_size: usize
) -> Result<()>
Generates register bindings.
pub fn generate_index(
self,
index_output: &mut File,
device: Device
) -> Result<()>
[src]
self,
index_output: &mut File,
device: Device
) -> Result<()>
Generates registers index.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,