![]() |
BLE5.2 1.0
开发文档说明
|
The header of xc_drv_aotimer.c 更多...
类 | |
| struct | AOTimer_InitCfg_t |
类型定义 | |
| typedef void(* | aotimer_handler_callback) (void *context) |
枚举 | |
| enum | AOTimer_ModeTypeDef { AOTIMER_MODE_SINGLE = 0 , AOTIMER_MODE_CYCLE = 1 } |
函数 | |
| void | xc_aotimer_init (uint8_t reg_idx, AOTimer_InitCfg_t *init_cfg) |
| xc_aotimer_init | |
| void | xc_aotimer_set_value (uint8_t reg_idx, uint32_t us) |
| xc_aotimer_set_value | |
| void | xc_aotimer_start (uint8_t reg_idx) |
| xc_aotimer_start | |
| void | xc_aotimer_stop (uint8_t reg_idx) |
| xc_aotimer_stop | |
| void | aotimer0_callback (void *context) |
| aotimer0_callback | |
| void | aotimer1_callback (void *context) |
| aotimer1_callback | |
The header of xc_drv_aotimer.c
在文件 xc_drv_aotimer.h 中定义.
| typedef void(* aotimer_handler_callback) (void *context) |
在文件 xc_drv_aotimer.h 第 65 行定义.
| enum AOTimer_ModeTypeDef |
| 枚举值 | |
|---|---|
| AOTIMER_MODE_SINGLE | |
| AOTIMER_MODE_CYCLE | |
在文件 xc_drv_aotimer.h 第 50 行定义.
| void aotimer0_callback | ( | void * | context | ) |
aotimer0_callback
AOTIMER0 Interrupt the callback function
| [in] | void | |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 204 行定义.
| void aotimer1_callback | ( | void * | context | ) |
aotimer1_callback
AOTIMER1 Interrupt the callback function
| [in] | void | |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 217 行定义.
| void xc_aotimer_init | ( | uint8_t | reg_idx, |
| AOTimer_InitCfg_t * | init_cfg | ||
| ) |
xc_aotimer_init
Example Initialize the aotimer according to its number
| [in] | reg_idx | : aotimer number idx; AOTIMER0_IDX or AOTIMER1_IDX |
| [in] | *init_cfg | : This is the structure parameter that the AOTimer initializes |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 57 行定义.
| void xc_aotimer_set_value | ( | uint8_t | reg_idx, |
| uint32_t | us | ||
| ) |
xc_aotimer_set_value
Set the timing time according to the aotimer number
| [in] | reg_idx | : aotimer number idx; AOTIMER0_IDX or AOTIMER1_IDX |
| [in] | us | : Time set by the timer (Microsecond is the smallest unit) |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 115 行定义.
| void xc_aotimer_start | ( | uint8_t | reg_idx | ) |
xc_aotimer_start
Start the timer according to the aotimer number
| [in] | reg_idx | : aotimer number idx; AOTIMER0_IDX or AOTIMER1_IDX |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 135 行定义.
| void xc_aotimer_stop | ( | uint8_t | reg_idx | ) |
xc_aotimer_stop
Stop the timer according to the aotimer number
| [in] | reg_idx | : aotimer number idx; AOTIMER0_IDX or AOTIMER1_IDX |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 156 行定义.