|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
结构体 | |
| struct | hal_timer_funcs_t |
| Driver层Timer和HAL层Timer的函数接口。 更多... | |
类型定义 | |
| typedef void(* | hal_timer_callback_t) (timer_index_t index) |
| Timer的回调函数。 | |
| typedef errcode_t(* | hal_timer_init_t) (timer_index_t index, hal_timer_callback_t callback) |
| HAL层Timer的初始化接口。 | |
| typedef void(* | hal_timer_deinit_t) (timer_index_t index) |
| HAL层Timer的去初始化接口。 | |
| typedef void(* | hal_timer_start_t) (timer_index_t index) |
| HAL层启动硬件定时器计数的接口。 | |
| typedef void(* | hal_timer_stop_t) (timer_index_t index) |
| HAL层停止硬件定时器计数的接口。 | |
| typedef void(* | hal_timer_set_load_count_t) (timer_index_t index, uint64_t delay_count) |
| HAL层设置硬件计时器计数的接口。 | |
| typedef uint64_t(* | hal_timer_get_current_value_t) (timer_index_t index) |
| HAL层获取硬件当前计时器剩余计数的接口。 | |
| typedef void(* | hal_timer_callback_t) (timer_index_t index) |
| Timer的回调函数。 | |
函数 | |
| errcode_t | hal_timer_register_funcs (timer_index_t index, hal_timer_funcs_t *funcs) |
| 注册 hal_timer_funcs_t 到 g_hal_timers_funcs | |
| void | hal_timer_unregister_funcs (timer_index_t index) |
| 从g_hal_timers_funcs注销 hal_timer_funcs_t 。 | |
| hal_timer_funcs_t * | hal_timer_get_funcs (timer_index_t index) |
| 获取Driver层Timer和HAL层Timer的接口实例,参考 hal_timer_funcs_t 。 | |
| errcode_t | hal_timer_regs_init (timer_index_t index) |
| 初始化Timer,设置寄存器的基地址。 | |
| void | hal_timer_regs_deinit (timer_index_t index) |
| 去初始化,然后清除在 hal_timer_regs_init 中设置的寄存器地址。 | |
| errcode_t | hal_timer_init (timer_index_t index, hal_timer_callback_t callback) |
| HAL层Timer的初始化接口。 | |
| void | hal_timer_deinit (timer_index_t index) |
| HAL层Timer的去初始化接口。 | |
| void | hal_timer_start (timer_index_t index) |
| HAL层启动硬件定时器计数的接口。 | |
| void | hal_timer_stop (timer_index_t index) |
| HAL层停止硬件定时器计数的接口。 | |
| void | hal_timer_config_load (timer_index_t index, uint64_t delay_count) |
| HAL层设置硬件计时器计数的接口。 | |
| uint64_t | hal_timer_get_current_value (timer_index_t index) |
| HAL层获取硬件当前计时器剩余计数的接口。 | |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides HAL drv timer
History:
2022-06-02, Create file.
| typedef void(* hal_timer_callback_t) (timer_index_t index) |
Timer的回调函数。
| typedef void(* hal_timer_callback_t) (timer_index_t index) |
Timer的回调函数。
| typedef void(* hal_timer_deinit_t) (timer_index_t index) |
HAL层Timer的去初始化接口。
| typedef uint64_t(* hal_timer_get_current_value_t) (timer_index_t index) |
HAL层获取硬件当前计时器剩余计数的接口。
| typedef errcode_t(* hal_timer_init_t) (timer_index_t index, hal_timer_callback_t callback) |
HAL层Timer的初始化接口。
| typedef void(* hal_timer_set_load_count_t) (timer_index_t index, uint64_t delay_count) |
HAL层设置硬件计时器计数的接口。
| typedef void(* hal_timer_start_t) (timer_index_t index) |
HAL层启动硬件定时器计数的接口。
| typedef void(* hal_timer_stop_t) (timer_index_t index) |
HAL层停止硬件定时器计数的接口。
| void hal_timer_config_load | ( | timer_index_t | index, |
| uint64_t | delay_count | ||
| ) |
HAL层设置硬件计时器计数的接口。
| void hal_timer_deinit | ( | timer_index_t | index | ) |
HAL层Timer的去初始化接口。
| uint64_t hal_timer_get_current_value | ( | timer_index_t | index | ) |
HAL层获取硬件当前计时器剩余计数的接口。
| hal_timer_funcs_t * hal_timer_get_funcs | ( | timer_index_t | index | ) |
获取Driver层Timer和HAL层Timer的接口实例,参考 hal_timer_funcs_t 。
| errcode_t hal_timer_init | ( | timer_index_t | index, |
| hal_timer_callback_t | callback | ||
| ) |
HAL层Timer的初始化接口。
| errcode_t hal_timer_register_funcs | ( | timer_index_t | index, |
| hal_timer_funcs_t * | funcs | ||
| ) |
注册 hal_timer_funcs_t 到 g_hal_timers_funcs
| void hal_timer_regs_deinit | ( | timer_index_t | index | ) |
去初始化,然后清除在 hal_timer_regs_init 中设置的寄存器地址。
| errcode_t hal_timer_regs_init | ( | timer_index_t | index | ) |
初始化Timer,设置寄存器的基地址。
| void hal_timer_start | ( | timer_index_t | index | ) |
HAL层启动硬件定时器计数的接口。
| void hal_timer_stop | ( | timer_index_t | index | ) |
HAL层停止硬件定时器计数的接口。
| void hal_timer_unregister_funcs | ( | timer_index_t | index | ) |
从g_hal_timers_funcs注销 hal_timer_funcs_t 。