nn::applet::CTR::ReplySleepQuery Function

Syntax

void ReplySleepQuery(
     AppletQueryReply reply
);

Parameters

Name Description
in reply Response.

Return Values

None.

Description

Replies to a sleep query.

This function sends another response after the application has returned a value of nn::applet::CTR::REPLY_LATER ("defer") in the sleep query callback set by the nn::applet::CTR::SetSleepQueryCallback function.

For the reply argument, specify either nn::applet::CTR::REPLY_ACCEPT or nn::applet::CTR::REPLY_REJECT.

Example

  if ( applet::IsExpectedToReplySleepQuery() )
  {
      // Approve sleep
      applet::ReplySleepQuery( applet::REPLY_ACCEPT );

      // Wait for wakeup (for example, wait for wakeup to be signaled by the awake callback)
      awakeEvent.Wait();

      // LCD on
      nngxStartLcdDisplay();
  }

Revision History

2011/06/14
Added an example.
2010/11/10
Initial version.

CONFIDENTIAL