Reset

Reset 1:

Reset the camera controller to initial state (might require multiple calls depending on current state, until S_OK is returned)

Syntax

Definition:

METHOD Reset : HRESULT

Reset 2: Return value

HRESULT

Further information

The method Reset resets the camera if it is in an error state.

State transitions

With Reset the camera function block should be brought from the ERROR state to the INITIAL state. If the reset is successful, this transition takes place immediately, otherwise the function block remains in the ERROR state.

All possible state transitions and their return codes are shown in the following transition matrix:

Return Codes (HRESULT)

Result state

ERROR

INITIAL

Initial state

ERROR

FAILED

SUCCESS

In case of success, S_OK or S_FALSE (if there was no error to reset) is returned as SUCCESS code.