pub struct SetFactoryConfiguration {
pub fs_op: FSFactoryRestoreType,
pub nvm_op: NVMFactoryRestoreType,
}Expand description
19.25 Restore factory configuration +UFACTORY
Force, at the next module boot, the restore of the factory configuration for FS and/or NVM. When the command is issued, a flag is written into the NVM: no action is done and it will be triggered to be executed only at the next module boot. If, before the next boot, the triggered operation must be deleted, then it is possible to issue the command with parameter 0,0.
Fields§
§fs_op: FSFactoryRestoreType§nvm_op: NVMFactoryRestoreTypeTrait Implementations§
Source§impl AtatCmd for SetFactoryConfiguration
impl AtatCmd for SetFactoryConfiguration
Source§type Response = NoResponse
type Response = NoResponse
The type of the response. Must implement the
AtatResp trait.Source§fn write(&self, buf: &mut [u8]) -> usize
fn write(&self, buf: &mut [u8]) -> usize
Write the command and return the number of written bytes.
Source§fn parse(
&self,
res: Result<&[u8], InternalError<'_>>,
) -> Result<Self::Response, Error>
fn parse( &self, res: Result<&[u8], InternalError<'_>>, ) -> Result<Self::Response, Error>
Parse the response into a
Self::Response or Error instance.Source§const MAX_TIMEOUT_MS: u32 = 1000
const MAX_TIMEOUT_MS: u32 = 1000
The max timeout in milliseconds.
Source§const ATTEMPTS: u8 = 1
const ATTEMPTS: u8 = 1
The max number of times to attempt a command with automatic retries if
using
send_retry.Source§const REATTEMPT_ON_PARSE_ERR: bool = true
const REATTEMPT_ON_PARSE_ERR: bool = true
Whether or not to reattempt a command on a parse error
using
send_retry.Source§const EXPECTS_RESPONSE_CODE: bool = true
const EXPECTS_RESPONSE_CODE: bool = true
Force client to look for a response.
Empty slice is then passed to parse by client.
Implemented to enhance expandability of ATAT
Source§impl Clone for SetFactoryConfiguration
impl Clone for SetFactoryConfiguration
Auto Trait Implementations§
impl Forget for SetFactoryConfiguration
impl Freeze for SetFactoryConfiguration
impl Move for SetFactoryConfiguration
impl RefUnwindSafe for SetFactoryConfiguration
impl Send for SetFactoryConfiguration
impl Sync for SetFactoryConfiguration
impl Unpin for SetFactoryConfiguration
impl UnsafeUnpin for SetFactoryConfiguration
impl UnwindSafe for SetFactoryConfiguration
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