1 /*
2  * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #pragma once
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #include <stdint.h>
14 #include "soc/soc_caps.h"
15 
16 /**
17  * @brief The structure of the counter value in lower power timer
18  */
19 typedef struct {
20     union {
21         struct {
22             uint32_t lo: SOC_LP_TIMER_BIT_WIDTH_LO;    /*!< Low part of counter value */
23             uint32_t hi: SOC_LP_TIMER_BIT_WIDTH_HI;    /*!< High part of counter value */
24             uint32_t reserved: 16;
25         };
26         uint64_t val; /*!< counter value */
27     };
28 } lp_timer_counter_value_t;
29 
30 #ifdef __cplusplus
31 }
32 #endif
33