Skip to main content

REG_USER_SET_SELECTOR

Constant REG_USER_SET_SELECTOR 

Source
pub const REG_USER_SET_SELECTOR: u64 = 0x200a8;
Expand description

REG_USER_SET_SELECTOR, REG_USER_SET_LOAD and REG_USER_SET_SAVE back the SFNC user-set features, so the fake can answer the workflow issue #121 was filed about.

They are shaped after the Hikrobot MV-CS050-10GC (Hikrobot_MV-CS050-10GC.xml:23009-23148 in the vendor corpus): both commands take the value they write from <pCommandValue>, an <IntSwissKnife> reading the selector register, so the written value names the user set. The fake acts on that value, not on the selector register — so a client that writes a constant 1 with UserSet2 selected saves into set 1 here as it would on the camera, and a test can see it (backlog GA-35; ADR-0019’s “fakes must be able to disagree”).