Read

nn::hid::CTR::AccelerometerReader::Read Member Function

Syntax

void Read(
     AccelerometerStatus * pBufs,
     s32 * pReadLen,
     s32 bufLen
);

Parameters

Name Description
out pBufs Loads sampling data in order, starting with the newest data.
out pReadLen Number of data samples that were loaded.
in bufLen Specifies the number of data samples to load into pBufs.

Return Values

None.

Description

Loads sampling data from the accelerometers in order, starting with the newest samples. Does not load any data that was previously loaded.

Up to seven data samples can be loaded (the most recent samples) (MAX_READ_NUM).

Revision History

2011/08/30
Fixed broken links.
2011/02/18
Added information about the maximum number of data samples.
2010/01/07
Initial version.

CONFIDENTIAL