nn::camera::CTR::SwitchContext Function

Syntax

nn::Result SwitchContext(
CameraSelect select,
Context next
);

Arguments

Name Description
in select Specifies the camera whose context you want to switch.
in next Specifies the context to switch to.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Process was successful.
ResultIsSleeping Unusable because the system is closed.
ResultFatalError There may be something physically wrong with the camera.

Description

Switches the camera settings context.

It is faster to switch the context than to configure settings individually.

Because this function replaces the specified camera's settings with the settings of the specified context (A or B), you cannot set the select argument to SELECT_NONE or the next argument to CONTEXT_BOTH.

The default value is CONTEXT_A for all cameras.

Note: This function may block for an extended period if a camera is restarting.

Revision History

2010/07/17
Added explanation about operation during restart.
2010/04/14
Added a description of the default values.
2010/04/09
Added description text.
2010/02/02
Initial version.

CONFIDENTIAL