nn::cec::CTR::CecControl Classclass CecControl
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.
In order to conserve power, each time the system performs communication it records the communication peer, and will not communicate with that peer again until an average of four hours (zero to eight hours) and no more than eight hours have passed.
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 (e.g. if the inbox was full).
Powering off the system does not erase this information. Up to 255 peers can be stored in memory.
Note that you cannot use this class to begin communication and 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 function is only available when debugging mode is enabled.
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. |
|---|
| S |
StartScanning
|
Starts up StreetPass (CEC) operations. |
|---|---|---|
| S |
StopScanning
|
Manually halts StreetPass (CEC) operations. |
| S |
GetCecState
|
Obtains the StreetPass state. |
| S |
EnterExclusiveState
|
Enters exclusive mode. (For debugging) Sets background communication exclusively for StreePasss. If another process has already switched to exclusive mode, or local communicaiton is being performed, this will result in an error. Call LeaveExclusiveState to leave exclusive mode. |
| S |
LeaveExclusiveState
|
Ends exclusive mode. (Used for debugging.) |
CONFIDENTIAL