BLE5.2 1.0
开发文档说明
| 类型定义 | 枚举 | 函数
xc_drv_aotimer.h 文件参考

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

_ __ _ ________ _
| |/ /(_)___ / ____/ /_ (_)___
| // / __ \/ / / __ \/ / __ \
/ |/ / / / / /___/ / / / / /_/ /
/_/|_/_/_/ /_/\____/_/ /_/_/ .___/
/_/
(C) 2022-2025 XinChip
作者
( XinChip ) Alex-J
( XinChip )

在文件 xc_drv_aotimer.h 中定义.

类型定义说明

◆ aotimer_handler_callback

typedef void(* aotimer_handler_callback) (void *context)

在文件 xc_drv_aotimer.h65 行定义.

枚举类型说明

◆ AOTimer_ModeTypeDef

枚举值
AOTIMER_MODE_SINGLE 
AOTIMER_MODE_CYCLE 

在文件 xc_drv_aotimer.h50 行定义.

函数说明

◆ aotimer0_callback()

void aotimer0_callback ( void *  context)

aotimer0_callback

AOTIMER0 Interrupt the callback function

参数
[in]void
[out]void
返回值
void

在文件 xc_drv_aotimer.c204 行定义.

◆ aotimer1_callback()

void aotimer1_callback ( void *  context)

aotimer1_callback

AOTIMER1 Interrupt the callback function

参数
[in]void
[out]void
返回值
void

在文件 xc_drv_aotimer.c217 行定义.

◆ xc_aotimer_init()

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.c57 行定义.

◆ xc_aotimer_set_value()

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.c115 行定义.

◆ xc_aotimer_start()

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.c135 行定义.

◆ xc_aotimer_stop()

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.c156 行定义.