TIM_BDTRConfig
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[ファームウェア関数一覧>ファームウェア関数一覧#d5c56b4f]]
*TIM_BDTRConfig [#ad92accc]
#contents
**ヘッダ宣言 [#zc3a39af]
**関数プロトタイプ [#c4b665f6]
void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeD...
**動作 [#z3143f9c]
-
**引数 [#w018bc95]
-TIMx&br;
タイマ周辺回路をTIMxで指定します。&br;
xは1, 2, 3, 4, 5, 6, 7, 8を選択できます。&br;
-TIM_BDTRInitStruct
'''stm32f10x_tim.h'''で定義されている構造体です。
typedef struct
{
uint16_t TIM_OSSRState;
uint16_t TIM_OSSIState;
uint16_t TIM_LOCKLevel;
uint16_t TIM_DeadTime;
uint16_t TIM_Break;
uint16_t TIM_BreakPolarity;
uint16_t TIM_AutomaticOutput;
} TIM_BDTRInitTypeDef;
--TIM_OSSRState
#include(Macro/TIM_OSSRState,notitle)
--TIM_OSSIState
#include(Macro/TIM_OSSIState,notitle)
--TIM_LOCKLevel
#include(Macro/TIM_LOCKLevel,notitle)
--TIM_DeadTime
--TIM_Break
#include(Macro/TIM_Break,notitle)
--TIM_BreakPolarity
#include(Macro/TIM_BreakPolarity,notitle)
--TIM_AutomaticOutput
#include(Macro/TIM_AutomaticOutput,notitle)
**戻り値 [#ceee36cd]
-無し
**呼び出し関数 [#yc02cbf8]
-無し
**サンプル [#v7ac6c0f]
/* OSSR, OSSI, Automatic Output enable, Break, dead time...
Level configuration*/
TIM_BDTRInitTypeDef TIM_BDTRInitStructure;
TIM_BDTRInitStructure.TIM_OSSRState = TIM_OSSRState_Enab...
TIM_BDTRInitStructure.TIM_OSSIState = TIM_OSSIState_Enab...
TIM_BDTRInitStructure.TIM_LOCKLevel = TIM_LOCKLevel_1;
TIM_BDTRInitStructure.TIM_DeadTime = 0x05;
TIM_BDTRInitStructure.TIM_Break = TIM_Break_Enable;
TIM_BDTRInitStructure.TIM_BreakPolarity = TIM_BreakPolar...
TIM_BDTRInitStructure.TIM_AutomaticOutput =
TIM_AutomaticOutput_Enable;
TIM_BDTRConfig(TIM1, &TIM_BDTRInitStructure);
**参照 [#mf96922a]
-STMマイコン徹底入門 P.
終了行:
[[ファームウェア関数一覧>ファームウェア関数一覧#d5c56b4f]]
*TIM_BDTRConfig [#ad92accc]
#contents
**ヘッダ宣言 [#zc3a39af]
**関数プロトタイプ [#c4b665f6]
void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeD...
**動作 [#z3143f9c]
-
**引数 [#w018bc95]
-TIMx&br;
タイマ周辺回路をTIMxで指定します。&br;
xは1, 2, 3, 4, 5, 6, 7, 8を選択できます。&br;
-TIM_BDTRInitStruct
'''stm32f10x_tim.h'''で定義されている構造体です。
typedef struct
{
uint16_t TIM_OSSRState;
uint16_t TIM_OSSIState;
uint16_t TIM_LOCKLevel;
uint16_t TIM_DeadTime;
uint16_t TIM_Break;
uint16_t TIM_BreakPolarity;
uint16_t TIM_AutomaticOutput;
} TIM_BDTRInitTypeDef;
--TIM_OSSRState
#include(Macro/TIM_OSSRState,notitle)
--TIM_OSSIState
#include(Macro/TIM_OSSIState,notitle)
--TIM_LOCKLevel
#include(Macro/TIM_LOCKLevel,notitle)
--TIM_DeadTime
--TIM_Break
#include(Macro/TIM_Break,notitle)
--TIM_BreakPolarity
#include(Macro/TIM_BreakPolarity,notitle)
--TIM_AutomaticOutput
#include(Macro/TIM_AutomaticOutput,notitle)
**戻り値 [#ceee36cd]
-無し
**呼び出し関数 [#yc02cbf8]
-無し
**サンプル [#v7ac6c0f]
/* OSSR, OSSI, Automatic Output enable, Break, dead time...
Level configuration*/
TIM_BDTRInitTypeDef TIM_BDTRInitStructure;
TIM_BDTRInitStructure.TIM_OSSRState = TIM_OSSRState_Enab...
TIM_BDTRInitStructure.TIM_OSSIState = TIM_OSSIState_Enab...
TIM_BDTRInitStructure.TIM_LOCKLevel = TIM_LOCKLevel_1;
TIM_BDTRInitStructure.TIM_DeadTime = 0x05;
TIM_BDTRInitStructure.TIM_Break = TIM_Break_Enable;
TIM_BDTRInitStructure.TIM_BreakPolarity = TIM_BreakPolar...
TIM_BDTRInitStructure.TIM_AutomaticOutput =
TIM_AutomaticOutput_Enable;
TIM_BDTRConfig(TIM1, &TIM_BDTRInitStructure);
**参照 [#mf96922a]
-STMマイコン徹底入門 P.
ページ名: