Go to the documentation of this file.
61 #ifdef HAL_PWM_MODULE_ENABLED
67 #define APP_PWM_PIN_ENABLE 1
68 #define APP_PWM_PIN_DISABLE 0
@ APP_PWM_ACTIVE_CHANNEL_A
Definition: app_pwm.h:136
PWM Channel init Structure definition.
Definition: app_pwm.h:119
pwm_init_t init
Definition: app_pwm.h:155
app_pwm_pin_t channel_a
Definition: app_pwm.h:109
app_pwm_pin_t channel_b
Definition: app_pwm.h:110
app_pwm_active_channel_t
PWM active channel Enumerations definition.
Definition: app_pwm.h:135
PWM IO configuration Structures.
Definition: app_pwm.h:94
PWM init Structure definition.
Definition: gr55xx_hal_pwm.h:128
uint16_t app_pwm_update_freq(app_pwm_id_t id, uint32_t freq)
Update the PWM frequency on the output.
uint8_t enable
Definition: app_pwm.h:100
uint32_t pin
Definition: app_pwm.h:97
@ APP_PWM_ACTIVE_CHANNEL_ALL
Definition: app_pwm.h:139
uint16_t app_pwm_init(app_pwm_params_t *p_params)
Initialize the pwm peripheral.
app_io_pull_t
GPIO pull Enumerations definition.
Definition: app_io.h:187
app_io_type_t
GPIO type Enumerations definition.
Definition: app_io.h:141
@ APP_PWM_ACTIVE_CHANNEL_C
Definition: app_pwm.h:138
app_pwm_id_t id
Definition: app_pwm.h:152
@ APP_PWM_ID_0
Definition: app_pwm.h:81
Header file containing functions prototypes of GPIO app library.
uint16_t app_pwm_start(app_pwm_id_t id)
Starts the PWM signal generation on the output.
app_io_pull_t pull
Definition: app_pwm.h:99
app_pwm_id_t
PWM module Enumerations definition.
Definition: app_pwm.h:80
@ APP_PWM_ID_1
Definition: app_pwm.h:82
uint16_t app_pwm_stop(app_pwm_id_t id)
Stops the PWM signal generation on the output.
@ APP_PWM_ACTIVE_CHANNEL_B
Definition: app_pwm.h:137
uint8_t duty
Definition: app_pwm.h:120
uint8_t drive_polarity
Definition: app_pwm.h:123
PWM parameters structure definition.
Definition: app_pwm.h:151
This file contains all the functions prototypes for the HAL module driver.
PWM configuration Structures.
Definition: app_pwm.h:108
uint16_t app_pwm_config_channel(app_pwm_id_t id, app_pwm_active_channel_t channel, app_pwm_channel_init_t *p_config)
Initialize the PWM channels according to the specified parameters.
app_io_type_t type
Definition: app_pwm.h:95
app_io_mux_t
GPIO mux Enumerations definition.
Definition: app_io.h:198
app_pwm_pin_cfg_t pin_cfg
Definition: app_pwm.h:153
@ APP_PWM_ID_MAX
Definition: app_pwm.h:83
uint16_t app_pwm_deinit(app_pwm_id_t id)
De-initialize the pwm peripheral.
app_pwm_pin_t channel_c
Definition: app_pwm.h:111
app_pwm_active_channel_t active_channel
Definition: app_pwm.h:154
Header file of app driver error code.
app_io_mux_t mux
Definition: app_pwm.h:96
@ APP_PWM_ACTIVE_CHANNEL_CLEARED
Definition: app_pwm.h:140