pub struct CustomBoard { /* private fields */ }
Expand description
A struct, which can be passed into the elf2uf2 function, this can be constructed via the CustomBoardBuilder struct.
Trait Implementations§
Source§impl BoardInfo for CustomBoard
impl BoardInfo for CustomBoard
Source§fn is_device_board(&self, device: &UsbDevice) -> bool
fn is_device_board(&self, device: &UsbDevice) -> bool
Check if the board is connected to the specified UsbDevice
Source§fn board_name(&self) -> String
fn board_name(&self) -> String
Get the board’s name
Source§fn page_size(&self) -> u32
fn page_size(&self) -> u32
Optional, just sent to a sensible default of 256, as long as it is less than 512 - 32 it should be okay, but boards very, and so does the bootloader firmware
Source§fn flash_sector_erase_size(&self) -> u64
fn flash_sector_erase_size(&self) -> u64
Optional, with a default erase size of 4096
Source§impl Clone for CustomBoard
impl Clone for CustomBoard
Source§fn clone(&self) -> CustomBoard
fn clone(&self) -> CustomBoard
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 moreAuto Trait Implementations§
impl Freeze for CustomBoard
impl RefUnwindSafe for CustomBoard
impl Send for CustomBoard
impl Sync for CustomBoard
impl Unpin for CustomBoard
impl UnwindSafe for CustomBoard
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