| | |
| | | /* |
| | | * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and |
| | | * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and |
| | | * its subsidiaries and affiliates (collectly called MKSEMI). |
| | | * |
| | | * All rights reserved. |
| | |
| | | #include "mk_mac.h" |
| | | #include "uwb_api.h" |
| | | #include "ranging_ccc_task.h" |
| | | #include "wsf_timer.h" |
| | | #include "mk_timer_list.h" |
| | | |
| | | /* Main control block of the ranging task */ |
| | | struct RANGING_CB_T |
| | | { |
| | | wsfQueue_t msg_queue; |
| | | wsfHandlerId_t handle_id; |
| | | wsfTimer_t daemon_timer; |
| | | mk_timer_t daemon_timer; |
| | | }; |
| | | |
| | | #ifdef __cplusplus |
| | |
| | | /** |
| | | * @brief Request update ranging keys. |
| | | * @param[in] sts_idx STS index |
| | | * @param[in] key_type key type |
| | | */ |
| | | void ranging_req_update_keys(uint32_t sts_idx, uint8_t key_type); |
| | | void ranging_req_update_keys(uint32_t sts_idx); |
| | | |
| | | /** |
| | | * @brief Start ranging monitor timer. |