nn::camera::CTR::GetLatestVsyncTiming Function

Syntax

void GetLatestVsyncTiming(
     nn::fnd::TimeSpan * pTime,
     Port port,
     size_t past = 1
);

Parameters

Name Description
out pTime Specifies the location where the timing is stored.
in port Specifies the port to which the camera to get the timing of is connected.
in past Specifies the number of past timing values to obtain. Specify this as an integer between 1 and 5. It will default to 1 if omitted. The pTime argument will store the timing values for recent past V-Sync events, starting with the most recent one. The pTime argument must therefore be allocated with enough space to store past V-Sync timings. That said, if the number of V-Sync signals input since the camera was activated (we'll call this number "frame" for the sake of convenience) is smaller than the value of past, indeterminate values are stored for the values between pTime[frame] and pTime[past-1].

Return Values

None.

Description

Gets the timing history of camera V-Sync signal inputs.

Internally, the camera interrupt handler does this by obtaining the tick value.

Revision History

2010/10/30
Corrected the erroneous description regarding the value stored when the frame count after startup is smaller than the number specified by the argument (TimeSpan(0)→indeterminate value).
2010/04/13
Initial version.

CONFIDENTIAL