pub struct STM32CubeProg { /* private fields */ }
Implementations§
Source§impl STM32CubeProg
impl STM32CubeProg
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self, Error>
pub fn discover(&self) -> Result<Vec<STLink>, Error>
pub fn connect(&self, stlink: &STLink) -> Result<(), Error>
pub fn disconnect(&self)
pub fn reset(&self, stlink: &STLink) -> Result<(), Error>
pub fn mass_erase(&self) -> Result<(), Error>
pub fn download<P: AsRef<Path>>( &self, path: P, address: Option<u32>, skip_erase: Option<bool>, verify: Option<bool>, ) -> Result<(), Error>
pub fn device_info(&self) -> Result<DeviceInfo, Error>
pub fn read_core_register(&self, register: Register) -> Result<u32, Error>
pub fn write_core_register( &self, register: Register, data: u32, ) -> Result<(), Error>
pub fn read_memory8(&self, address: u32, size: u32) -> Result<Vec<u8>, Error>
pub fn read_memory32(&self, address: u32, size: u32) -> Result<Vec<u32>, Error>
pub fn write_memory8(&self, address: u32, data: Vec<u8>) -> Result<(), Error>
pub fn write_memory32( &self, address: u32, data_u32: Vec<u32>, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for STM32CubeProg
impl RefUnwindSafe for STM32CubeProg
impl Send for STM32CubeProg
impl Sync for STM32CubeProg
impl Unpin for STM32CubeProg
impl UnwindSafe for STM32CubeProg
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