Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 56 | Rev 61 | ||
---|---|---|---|
Line 235... | Line 235... | ||
235 | } |
235 | } |
236 | 236 | ||
237 | /** |
237 | /** |
238 | * @brief Configure the TIMx time base unit. |
238 | * @brief Configure the TIMx time base unit. |
239 | * @param TIMx Timer Instance |
239 | * @param TIMx Timer Instance |
240 | * @param TIM_InitStruct pointer to a @ref LL_TIM_InitTypeDef structure (TIMx time base unit configuration data structure) |
240 | * @param TIM_InitStruct pointer to a @ref LL_TIM_InitTypeDef structure |
- | 241 | * (TIMx time base unit configuration data structure) |
|
241 | * @retval An ErrorStatus enumeration value: |
242 | * @retval An ErrorStatus enumeration value: |
242 | * - SUCCESS: TIMx registers are de-initialized |
243 | * - SUCCESS: TIMx registers are de-initialized |
243 | * - ERROR: not applicable |
244 | * - ERROR: not applicable |
244 | */ |
245 | */ |
245 | ErrorStatus LL_TIM_Init(TIM_TypeDef *TIMx, LL_TIM_InitTypeDef *TIM_InitStruct) |
246 | ErrorStatus LL_TIM_Init(TIM_TypeDef *TIMx, LL_TIM_InitTypeDef *TIM_InitStruct) |
Line 281... | Line 282... | ||
281 | } |
282 | } |
282 | 283 | ||
283 | /** |
284 | /** |
284 | * @brief Set the fields of the TIMx output channel configuration data |
285 | * @brief Set the fields of the TIMx output channel configuration data |
285 | * structure to their default values. |
286 | * structure to their default values. |
286 | * @param TIM_OC_InitStruct pointer to a @ref LL_TIM_OC_InitTypeDef structure (the output channel configuration data structure) |
287 | * @param TIM_OC_InitStruct pointer to a @ref LL_TIM_OC_InitTypeDef structure |
- | 288 | * (the output channel configuration data structure) |
|
287 | * @retval None |
289 | * @retval None |
288 | */ |
290 | */ |
289 | void LL_TIM_OC_StructInit(LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct) |
291 | void LL_TIM_OC_StructInit(LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct) |
290 | { |
292 | { |
291 | /* Set the default configuration */ |
293 | /* Set the default configuration */ |
Line 301... | Line 303... | ||
301 | * @param Channel This parameter can be one of the following values: |
303 | * @param Channel This parameter can be one of the following values: |
302 | * @arg @ref LL_TIM_CHANNEL_CH1 |
304 | * @arg @ref LL_TIM_CHANNEL_CH1 |
303 | * @arg @ref LL_TIM_CHANNEL_CH2 |
305 | * @arg @ref LL_TIM_CHANNEL_CH2 |
304 | * @arg @ref LL_TIM_CHANNEL_CH3 |
306 | * @arg @ref LL_TIM_CHANNEL_CH3 |
305 | * @arg @ref LL_TIM_CHANNEL_CH4 |
307 | * @arg @ref LL_TIM_CHANNEL_CH4 |
306 | * @param TIM_OC_InitStruct pointer to a @ref LL_TIM_OC_InitTypeDef structure (TIMx output channel configuration data structure) |
308 | * @param TIM_OC_InitStruct pointer to a @ref LL_TIM_OC_InitTypeDef structure (TIMx output channel configuration |
- | 309 | * data structure) |
|
307 | * @retval An ErrorStatus enumeration value: |
310 | * @retval An ErrorStatus enumeration value: |
308 | * - SUCCESS: TIMx output channel is initialized |
311 | * - SUCCESS: TIMx output channel is initialized |
309 | * - ERROR: TIMx output channel is not initialized |
312 | * - ERROR: TIMx output channel is not initialized |
310 | */ |
313 | */ |
311 | ErrorStatus LL_TIM_OC_Init(TIM_TypeDef *TIMx, uint32_t Channel, LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct) |
314 | ErrorStatus LL_TIM_OC_Init(TIM_TypeDef *TIMx, uint32_t Channel, LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct) |
Line 334... | Line 337... | ||
334 | } |
337 | } |
335 | 338 | ||
336 | /** |
339 | /** |
337 | * @brief Set the fields of the TIMx input channel configuration data |
340 | * @brief Set the fields of the TIMx input channel configuration data |
338 | * structure to their default values. |
341 | * structure to their default values. |
339 | * @param TIM_ICInitStruct pointer to a @ref LL_TIM_IC_InitTypeDef structure (the input channel configuration data structure) |
342 | * @param TIM_ICInitStruct pointer to a @ref LL_TIM_IC_InitTypeDef structure (the input channel configuration |
- | 343 | * data structure) |
|
340 | * @retval None |
344 | * @retval None |
341 | */ |
345 | */ |
342 | void LL_TIM_IC_StructInit(LL_TIM_IC_InitTypeDef *TIM_ICInitStruct) |
346 | void LL_TIM_IC_StructInit(LL_TIM_IC_InitTypeDef *TIM_ICInitStruct) |
343 | { |
347 | { |
344 | /* Set the default configuration */ |
348 | /* Set the default configuration */ |
Line 354... | Line 358... | ||
354 | * @param Channel This parameter can be one of the following values: |
358 | * @param Channel This parameter can be one of the following values: |
355 | * @arg @ref LL_TIM_CHANNEL_CH1 |
359 | * @arg @ref LL_TIM_CHANNEL_CH1 |
356 | * @arg @ref LL_TIM_CHANNEL_CH2 |
360 | * @arg @ref LL_TIM_CHANNEL_CH2 |
357 | * @arg @ref LL_TIM_CHANNEL_CH3 |
361 | * @arg @ref LL_TIM_CHANNEL_CH3 |
358 | * @arg @ref LL_TIM_CHANNEL_CH4 |
362 | * @arg @ref LL_TIM_CHANNEL_CH4 |
359 | * @param TIM_IC_InitStruct pointer to a @ref LL_TIM_IC_InitTypeDef structure (TIMx input channel configuration data structure) |
363 | * @param TIM_IC_InitStruct pointer to a @ref LL_TIM_IC_InitTypeDef structure (TIMx input channel configuration data |
- | 364 | * structure) |
|
360 | * @retval An ErrorStatus enumeration value: |
365 | * @retval An ErrorStatus enumeration value: |
361 | * - SUCCESS: TIMx output channel is initialized |
366 | * - SUCCESS: TIMx output channel is initialized |
362 | * - ERROR: TIMx output channel is not initialized |
367 | * - ERROR: TIMx output channel is not initialized |
363 | */ |
368 | */ |
364 | ErrorStatus LL_TIM_IC_Init(TIM_TypeDef *TIMx, uint32_t Channel, LL_TIM_IC_InitTypeDef *TIM_IC_InitStruct) |
369 | ErrorStatus LL_TIM_IC_Init(TIM_TypeDef *TIMx, uint32_t Channel, LL_TIM_IC_InitTypeDef *TIM_IC_InitStruct) |
Line 386... | Line 391... | ||
386 | return result; |
391 | return result; |
387 | } |
392 | } |
388 | 393 | ||
389 | /** |
394 | /** |
390 | * @brief Fills each TIM_EncoderInitStruct field with its default value |
395 | * @brief Fills each TIM_EncoderInitStruct field with its default value |
391 | * @param TIM_EncoderInitStruct pointer to a @ref LL_TIM_ENCODER_InitTypeDef structure (encoder interface configuration data structure) |
396 | * @param TIM_EncoderInitStruct pointer to a @ref LL_TIM_ENCODER_InitTypeDef structure (encoder interface |
- | 397 | * configuration data structure) |
|
392 | * @retval None |
398 | * @retval None |
393 | */ |
399 | */ |
394 | void LL_TIM_ENCODER_StructInit(LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct) |
400 | void LL_TIM_ENCODER_StructInit(LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct) |
395 | { |
401 | { |
396 | /* Set the default configuration */ |
402 | /* Set the default configuration */ |
Line 406... | Line 412... | ||
406 | } |
412 | } |
407 | 413 | ||
408 | /** |
414 | /** |
409 | * @brief Configure the encoder interface of the timer instance. |
415 | * @brief Configure the encoder interface of the timer instance. |
410 | * @param TIMx Timer Instance |
416 | * @param TIMx Timer Instance |
411 | * @param TIM_EncoderInitStruct pointer to a @ref LL_TIM_ENCODER_InitTypeDef structure (TIMx encoder interface configuration data structure) |
417 | * @param TIM_EncoderInitStruct pointer to a @ref LL_TIM_ENCODER_InitTypeDef structure (TIMx encoder interface |
- | 418 | * configuration data structure) |
|
412 | * @retval An ErrorStatus enumeration value: |
419 | * @retval An ErrorStatus enumeration value: |
413 | * - SUCCESS: TIMx registers are de-initialized |
420 | * - SUCCESS: TIMx registers are de-initialized |
414 | * - ERROR: not applicable |
421 | * - ERROR: not applicable |
415 | */ |
422 | */ |
416 | ErrorStatus LL_TIM_ENCODER_Init(TIM_TypeDef *TIMx, LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct) |
423 | ErrorStatus LL_TIM_ENCODER_Init(TIM_TypeDef *TIMx, LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct) |