Struct drone_svd::Config[][src]

pub struct Config<'a> { /* fields omitted */ }

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]

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]

Generates register bindings.

pub fn generate_index(
    self,
    index_output: &mut File,
    device: Device
) -> Result<()>
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.