From 260eda604566927618a69f3e71bdfc042e3d8471 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 3 Apr 2024 22:25:01 +0200 Subject: [PATCH] nn_ccr: Implement CCRCDCSysSetDrhState --- include/nn/ccr.h | 1 + include/nn/ccr/cdc_sys.h | 40 +++++++++++++++++++ .../test_compile_headers_list.h | 1 + 3 files changed, 42 insertions(+) create mode 100644 include/nn/ccr/cdc_sys.h diff --git a/include/nn/ccr.h b/include/nn/ccr.h index 7e3776aa1..c795e5ffa 100644 --- a/include/nn/ccr.h +++ b/include/nn/ccr.h @@ -5,5 +5,6 @@ * */ +#include #include #include diff --git a/include/nn/ccr/cdc_sys.h b/include/nn/ccr/cdc_sys.h new file mode 100644 index 000000000..b49d54038 --- /dev/null +++ b/include/nn/ccr/cdc_sys.h @@ -0,0 +1,40 @@ +#pragma once +#include +#include + +/** + * \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 + +/** @} */ \ No newline at end of file diff --git a/tests/test_compile_headers_common/test_compile_headers_list.h b/tests/test_compile_headers_common/test_compile_headers_list.h index 559766080..355af10ee 100644 --- a/tests/test_compile_headers_common/test_compile_headers_list.h +++ b/tests/test_compile_headers_common/test_compile_headers_list.h @@ -100,6 +100,7 @@ #include #include #include +#include #include #include #include