Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::node::StoreParametersConfig Struct Reference

Timing for the store-parameters confirmation walk (ProfileDevice::runStoreParameters). More...

#include <profile_device.h>

Public Attributes

uint32_t retries = 10
 Maximum confirmation polls after the first.
 
std::chrono::milliseconds interval {500}
 Delay between confirmation polls.
 
std::chrono::milliseconds settle {1000}
 Wait after the write before the first poll.
 
std::stop_token stop {}
 Abandons the confirmation wait; default never stops.
 

Detailed Description

Timing for the store-parameters confirmation walk (ProfileDevice::runStoreParameters).

After the "save" signature is written, the procedure waits settle for the device to begin the flash write, then polls 0x1010:01 up to retries more times, interval apart, until it reads back 1. The retry defaults (10 polls, 500 ms) match the reference client; settle (1 s) tracks device flash-write behaviour and rarely needs overriding (tests pass zero delays to run instantly).

Member Data Documentation

◆ interval

std::chrono::milliseconds mm::node::StoreParametersConfig::interval {500}

Delay between confirmation polls.

◆ retries

uint32_t mm::node::StoreParametersConfig::retries = 10

Maximum confirmation polls after the first.

◆ settle

std::chrono::milliseconds mm::node::StoreParametersConfig::settle {1000}

Wait after the write before the first poll.

◆ stop

std::stop_token mm::node::StoreParametersConfig::stop {}

Abandons the confirmation wait; default never stops.

It stops the waiting, not the store: the "save" signature is already on the wire and the device is already writing to flash, so a cancelled call reports that the store was not confirmed rather than that it did not happen.


The documentation for this struct was generated from the following file: