初级会员

- 积分
- 64
- 金钱
- 64
- 注册时间
- 2015-7-12
- 在线时间
- 5 小时
|
typedef struct
{
uint16_t TIM_Channel; /*!< Specifies the TIM channel.
This parameter can be a value of @ref TIM_Channel */
uint16_t TIM_ICPolarity; /*!< Specifies the active edge of the input signal.
This parameter can be a value of @ref TIM_Input_Capture_Polarity */
uint16_t TIM_ICSelection; /*!< Specifies the input.
This parameter can be a value of @ref TIM_Input_Capture_Selection */
uint16_t TIM_ICPrescaler; /*!< Specifies the Input Capture Prescaler.
This parameter can be a value of @ref TIM_Input_Capture_Prescaler */
uint16_t TIM_ICFilter; /*!< Specifies the input capture filter.
This parameter can be a number between 0x0 and 0xF */
} TIM_ICInitTypeDef;
但是在手册中却又TIM_ICMode这个定义为什么?
TIM_ICInitTypeDef 定义于文件“stm32f10x_tim.h”:
typedef struct
{
u16 TIM_ICMode;
u16 TIM_Channel;
u16 TIM_ICPolarity;
u16 TIM_ICSelection;
u16 TIM_ICPrescaler;
u16 TIM_ICFilter;
} TIM_ICInitTypeDef;
TIM_ICMode TIM_ICMode选择了TIM输入捕获模式。
该参数取值见下表。
|
|