# lv_timer_private.h (/api/misc/lv_timer_private_h)



<RelatedHeaders name="lv_timer.h" isPrivate="true" />

<ApiSummary functions="2" structs="2" />

Functions [#functions]

<ApiMember kind="function" name="lv_timer_core_init" file="misc/lv_timer_private.h" line="70" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_timer_private.h#L70">
  lv_timer_core_init [#lv_timer_core_init]

  Init the lv\_timer module

  ```c title=" " lineNumbers=1
  void lv_timer_core_init(void)
  ```
</ApiMember>

<ApiMember kind="function" name="lv_timer_core_deinit" file="misc/lv_timer_private.h" line="75" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_timer_private.h#L75">
  lv_timer_core_deinit [#lv_timer_core_deinit]

  Deinit the lv\_timer module

  ```c title=" " lineNumbers=1
  void lv_timer_core_deinit(void)
  ```
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="_lv_timer_t">
  \_lv_timer_t [#_lv_timer_t]

  Descriptor of a lv\_timer

  | Member         | Type                             | Description                                     |
  | -------------- | -------------------------------- | ----------------------------------------------- |
  | `ext_data`     | <ApiLink name="lv_ext_data_t" /> |                                                 |
  | `period`       | <ApiLink name="uint32_t" />      | How often the timer should run                  |
  | `last_run`     | <ApiLink name="uint32_t" />      | Last time the timer ran                         |
  | `timer_cb`     | <ApiLink name="lv_timer_cb_t" /> | Timer function                                  |
  | `user_data`    | `void *`                         | Custom user data                                |
  | `repeat_count` | <ApiLink name="int32_t" />       | 1: One time; -1 : infinity; n>0: residual times |
  | `paused`       | `volatile int`                   |                                                 |
  | `auto_delete`  | <ApiLink name="uint32_t" />      |                                                 |
</ApiMember>

<ApiMember kind="struct" name="lv_timer_state_t">
  lv_timer_state_t [#lv_timer_state_t]

  | Member                  | Type                                                    | Description                         |
  | ----------------------- | ------------------------------------------------------- | ----------------------------------- |
  | `timer_ll`              | <ApiLink name="lv_ll_t" />                              | Linked list to store the lv\_timers |
  | `lv_timer_run`          | <ApiLink name="bool" />                                 |                                     |
  | `idle_last`             | <ApiLink name="uint8_t" />                              |                                     |
  | `timer_deleted`         | <ApiLink name="bool" />                                 |                                     |
  | `timer_created`         | <ApiLink name="bool" />                                 |                                     |
  | `timer_time_until_next` | <ApiLink name="uint32_t" display="volatile uint32_t" /> |                                     |
  | `already_running`       | <ApiLink name="bool" />                                 |                                     |
  | `periodic_last_tick`    | <ApiLink name="uint32_t" />                             |                                     |
  | `busy_time`             | <ApiLink name="uint32_t" />                             |                                     |
  | `idle_period_start`     | <ApiLink name="uint32_t" />                             |                                     |
  | `run_cnt`               | <ApiLink name="uint32_t" />                             |                                     |
  | `resume_cb`             | <ApiLink name="lv_timer_handler_resume_cb_t" />         |                                     |
  | `resume_data`           | `void *`                                                |                                     |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_ext_data.h&#x22;, &#x22;lv_timer.h&#x22;]" includedBy="[&#x22;lv_global.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_types.h&#x22;]" />
