Skip to content

Commit

Permalink
nn_ccr: Implement CCRCDCSysSetDrhState
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Apr 3, 2024
1 parent 682f8eb commit 260eda6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/nn/ccr.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
*
*/

#include <nn/ccr/cdc_sys.h>
#include <nn/ccr/sys.h>
#include <nn/ccr/sys_caffeine.h>
40 changes: 40 additions & 0 deletions include/nn/ccr/cdc_sys.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#pragma once
#include <wut.h>
#include <coreinit/time.h>

/**
* \defgroup nn_ccr_cdc_sys
* \ingroup nn_ccr
* (see nn::ccr)
* @{
*/

#ifdef __cplusplus
extern "C" {
#endif

typedef enum CCRCDCSysDrhStateEnum
{
CCR_CDC_SYS_DRH_STATE_ECO = 0x04,
CCR_CDC_SYS_DRH_STATE_CAFE = 0xFF,
} CCRCDCSysDrhStateEnum;

typedef struct CCRCDCSysDrhState {
uint8_t state;
} CCRCDCSysDrhState;
WUT_CHECK_SIZE(CCRCDCSysDrhState, 0x1);

/**
* Sets the Drh State
*
* \return
* 0 on success.
*/
int32_t
CCRCDCSysSetDrhState(CCRCDCSysDrhState* drh_state);

#ifdef __cplusplus
}
#endif

/** @} */
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
#include <nn/acp/save.h>
#include <nn/acp/title.h>
#include <nn/act/client_cpp.h>
#include <nn/ccr/cdc_sys.h>
#include <nn/ccr/sys.h>
#include <nn/ccr/sys_caffeine.h>
#include <nn/cmpt/cmpt.h>
Expand Down

0 comments on commit 260eda6

Please sign in to comment.