nn::cec::CTR::CecControl Class

Syntax

class CecControl

Description

Changes StreetPass (CEC) status and gets information.

The StreetPass daemon state is managed by the system and the daemon runs automatically.
When you access a message box (using OpenMessageBox, ReadMessage, WriteMessage or similar), the StreetPass daemon operations are suspended and it enters the IDLE state.

Every time StreetPass data is exchanged, that communication peer is remembered, and data is not exchanged with that peer again for an average of four hours and a maximum of eight hours. Communication peers are remembered if (1) one or more items of data were sent or received or (2) communication was started, but no data was available to be sent or received. Powering off the system does not erase this information. Note that you cannot use this class to deliver data to communication peers at specified times. For debugging purposes, there is a method to reset the past communication peer information and allow exchanging data again with the same peer(s). To reset the information, specify true as an argument to StartScanning. This feature cannot be used in release builds.

Enumerated Types

DaemonState Value indicating the StreetPass (CEC) state returned by the GetCecState function. A message box can only be accessed when this is DAEMON_STATE_IDLE.

Member Functions

S StartScanning Starts up StreetPass (CEC) operations.
S StopScanning Manually halts StreetPass (CEC) operations.
S GetCecState Obtains the StreetPass state.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL