![]() |
BLE5.2 1.0
开发文档说明
|
Target xinchip aotimer driver implementation 更多...
函数 | |
| void | xc_aotimer_init (uint8_t reg_idx, AOTimer_InitCfg_t *init_cfg) |
| xc_aotimer_init | |
| static uint32_t | xc_aotimer_us_to_ticks (uint32_t us) |
| xc_aotimer_us_to_ticks | |
| 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_Handler (void) |
| AOTIMER0_Handler | |
| void | AOTIMER1_Handler (void) |
| AOTIMER1_Handler | |
| __WEAK void | aotimer0_callback (void *context) |
| aotimer0_callback | |
| __WEAK void | aotimer1_callback (void *context) |
| aotimer1_callback | |
变量 | |
| static bool | aotimer_rst_flag = false |
| aotimer_handler_callback | aotimer_n_callback [2] |
Target xinchip aotimer driver implementation
Target xc aotimer driver implementation
在文件 xc_drv_aotimer.c 中定义.
| __WEAK void aotimer0_callback | ( | void * | context | ) |
aotimer0_callback
AOTIMER0 Interrupt the callback function
| [in] | void | |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 204 行定义.
| void AOTIMER0_Handler | ( | void | ) |
AOTIMER0_Handler
AOTIMER0 Interrupt function
| [in] | void | |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 170 行定义.
| __WEAK void aotimer1_callback | ( | void * | context | ) |
aotimer1_callback
AOTIMER1 Interrupt the callback function
| [in] | void | |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 217 行定义.
| void AOTIMER1_Handler | ( | void | ) |
AOTIMER1_Handler
AOTIMER1 Interrupt function
| [in] | void | |
| [out] | void |
| void |
在文件 xc_drv_aotimer.c 第 187 行定义.
| 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 行定义.
|
static |
xc_aotimer_us_to_ticks
Returns the number of ticks according to the time to be set by the aotimer
| [in] | us | : Time set by the timer (Microsecond is the smallest unit) |
| [out] | void |
| ticks | ( Tick count ) |
在文件 xc_drv_aotimer.c 第 92 行定义.
| aotimer_handler_callback aotimer_n_callback[2] |
在文件 xc_drv_aotimer.c 第 38 行定义.
|
static |
在文件 xc_drv_aotimer.c 第 33 行定义.