nn::hid::CTR::AccelerometerReader::ReadLatest Member Function

Syntax

bool ReadLatest(
     AccelerometerStatus * pBuf
);

Arguments

Name Description
out pBuf Loads the sampling data.

Return Values

Returns the result of loading sampling data.
true: Successfully loaded.
false: Could not be loaded. (The data can be loaded immediately following the first sampling that occurs after an instance of AccelerometerReader has been generated or after the system wakes up from sleep.)

Description

Loads the newest sampling data from the accelerometers. Unlike the nn::hid::CTR::AccelerometerReader::Read function, this function can load the same sampling data more than once.

This function internally calculates the sensitivity as the change in acceleration between the current and previous data samples from the ReadLatest function.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL