nn::hid::CTR::GyroscopeReader::ReadLatest Member Function

Syntax

bool ReadLatest(
     GyroscopeStatus * pBuf
);

Arguments

Name Description
out pBuf Loads the sampling data.

Return Values

Returns the result of loading sampling data.
true: Successfully loaded.
false: Not loaded. (Will be loaded immediately following the first sampling that occurs after creation of an instance of GyroscopeReader or the system wakes from sleep.)

Description

Loads the latest sampling data from the gyro sensor. This function, unlike the nn::hid::CTR::GyroscopeReader::Read function, can load the same sampling data more than once.


CONFIDENTIAL