RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
hwtimer.h 文件参考
#include <rtthread.h>
+ hwtimer.h 的引用(Include)关系图:

浏览该文件的源代码.

结构体

struct  rt_hwtimerval
 
struct  rt_hwtimer_ops
 
struct  rt_hwtimer_info
 
struct  rt_hwtimer_device
 

宏定义

#define HWTIMER_CNTMODE_UP   0x01 /* increment count mode */
 
#define HWTIMER_CNTMODE_DW   0x02 /* decreasing count mode */
 

类型定义

typedef struct rt_hwtimerval rt_hwtimerval_t
 
typedef struct rt_hwtimer_device rt_hwtimer_t
 

枚举

enum  rt_hwtimer_ctrl_t { HWTIMER_CTRL_FREQ_SET = RT_DEVICE_CTRL_BASE(Timer) + 0x01 , HWTIMER_CTRL_STOP = RT_DEVICE_CTRL_BASE(Timer) + 0x02 , HWTIMER_CTRL_INFO_GET = RT_DEVICE_CTRL_BASE(Timer) + 0x03 , HWTIMER_CTRL_MODE_SET = RT_DEVICE_CTRL_BASE(Timer) + 0x04 }
 
enum  rt_hwtimer_mode_t { HWTIMER_MODE_ONESHOT = 0x01 , HWTIMER_MODE_PERIOD }
 

函数

rt_err_t rt_device_hwtimer_register (rt_hwtimer_t *timer, const char *name, void *user_data)
 
void rt_device_hwtimer_isr (rt_hwtimer_t *timer)
 

宏定义说明

◆ HWTIMER_CNTMODE_UP

#define HWTIMER_CNTMODE_UP   0x01 /* increment count mode */

在文件 hwtimer.h41 行定义.

◆ HWTIMER_CNTMODE_DW

#define HWTIMER_CNTMODE_DW   0x02 /* decreasing count mode */

在文件 hwtimer.h42 行定义.

类型定义说明

◆ rt_hwtimerval_t

◆ rt_hwtimer_t

枚举类型说明

◆ rt_hwtimer_ctrl_t

枚举值
HWTIMER_CTRL_FREQ_SET RT_DEVICE_CTRL_BASE(Timer) + 0x01 
HWTIMER_CTRL_STOP RT_DEVICE_CTRL_BASE(Timer) + 0x02 
HWTIMER_CTRL_INFO_GET RT_DEVICE_CTRL_BASE(Timer) + 0x03 
HWTIMER_CTRL_MODE_SET RT_DEVICE_CTRL_BASE(Timer) + 0x04 

在文件 hwtimer.h19 行定义.

20{
21 HWTIMER_CTRL_FREQ_SET = RT_DEVICE_CTRL_BASE(Timer) + 0x01, /* set the count frequency */
22 HWTIMER_CTRL_STOP = RT_DEVICE_CTRL_BASE(Timer) + 0x02, /* stop timer */
23 HWTIMER_CTRL_INFO_GET = RT_DEVICE_CTRL_BASE(Timer) + 0x03, /* get a timer feature information */
24 HWTIMER_CTRL_MODE_SET = RT_DEVICE_CTRL_BASE(Timer) + 0x04 /* Setting the timing mode(oneshot/period) */
#define RT_DEVICE_CTRL_BASE(Type)
rt_hwtimer_ctrl_t
@ HWTIMER_CTRL_INFO_GET
@ HWTIMER_CTRL_STOP
@ HWTIMER_CTRL_FREQ_SET
@ HWTIMER_CTRL_MODE_SET

◆ rt_hwtimer_mode_t

枚举值
HWTIMER_MODE_ONESHOT 0x01 
HWTIMER_MODE_PERIOD  

在文件 hwtimer.h28 行定义.

29{
rt_hwtimer_mode_t
@ HWTIMER_MODE_ONESHOT
@ HWTIMER_MODE_PERIOD

函数说明

◆ rt_device_hwtimer_register()

rt_err_t rt_device_hwtimer_register ( rt_hwtimer_t * timer,
const char * name,
void * user_data )

◆ rt_device_hwtimer_isr()

void rt_device_hwtimer_isr ( rt_hwtimer_t * timer)