Functions
Initialization and de-initialization functions
Peripheral Driver » LL Driver » PWM » Functions

## Functions
error_status_t | ll_pwm_deinit (pwm_regs_t *PWMx)
| De-initialize PWM registers (Registers restored to their default values). More...
error_status_t | ll_pwm_init (pwm_regs_t *PWMx, ll_pwm_init_t *p_pwm_init)
| Initialize PWM registers according to the specified parameters in PWM_InitStruct. More...
void | ll_pwm_struct_init (ll_pwm_init_t *p_pwm_init)
| Set each field of a ll_pwm_init_t type structure to default value. More...

## Detailed Description

## Function Documentation

## ◆ ll_pwm_deinit()

error_status_t ll_pwm_deinit | ( | pwm_regs_t * | PWMx | ) |

De-initialize PWM registers (Registers restored to their default values).

Parameters

  PWMx | PWM instance

Return values

  An | error_status_t enumeration value: SUCCESS: PWM registers are de-initialized ERROR: PWM registers are not de-initialized

## ◆ ll_pwm_init()

error_status_t ll_pwm_init | ( | pwm_regs_t * | PWMx,
|  | ll_pwm_init_t * | p_pwm_init
| ) |  |

Initialize PWM registers according to the specified parameters in PWM_InitStruct.

Parameters

  PWMx | PWM instance
  p_pwm_init | Pointer to a ll_pwm_init_t structure that contains the configuration information for the specified PWM peripheral.

Return values

  An | error_status_t enumeration value: SUCCESS: PWM registers are initialized according to p_pwm_init content ERROR: Problem occurred during PWM Registers initialization

## ◆ ll_pwm_struct_init()

void ll_pwm_struct_init | ( | ll_pwm_init_t * | p_pwm_init | ) |

Set each field of a ll_pwm_init_t type structure to default value.

Parameters

  p_pwm_init | Pointer to a ll_pwm_init_t structure whose fields will be set to default values.

Return values

  None |