Module bl602_sdk::pwm [−][src]
Expand description
PWM HAL for BL602. See https://lupyuen.github.io/articles/book#pwm-on-bl602
Structs
@brief PWM configuration structure type definition
Constants
< PWM Channel 0 define
< PWM Channel 1 define
< PWM Channel 2 define
< PWM Channel 3 define
< PWM Channel 4 define
<
< PWM Clock source :32K CLK
< PWM Clock source :Bus CLK
< PWM Clock source :XTAL CLK
<
< PWM Pulse count interrupt define
< PWM invert polarity mode define
< PWM normal polarity mode define
< PWM stop abrupt select define
< PWM stop graceful select define
Functions
Get the Duty Cycle of a PWM Channel. See bl_pwm_get_duty
in “PWM Frequency and Duty Cycle” https://lupyuen.github.io/articles/led#pwm-frequency-and-duty-cycle
Designate a GPIO Pin as a PWM Channel. See bl_pwm_init
in “Initialise PWM” https://lupyuen.github.io/articles/led#initialise-pwm
Set the Duty Cycle of a PWM Channel. See bl_pwm_set_duty
in “PWM Frequency and Duty Cycle” https://lupyuen.github.io/articles/led#pwm-frequency-and-duty-cycle
Set the Frequency of a PWM Channel. See bl_pwm_set_freq
in “PWM Frequency and Duty Cycle” https://lupyuen.github.io/articles/led#pwm-frequency-and-duty-cycle
Start a PWM Channel. See bl_pwm_start
in “PWM Operation” https://lupyuen.github.io/articles/led#pwm-operation
Stop a PWM Channel. See bl_pwm_stop
in “PWM Operation” https://lupyuen.github.io/articles/led#pwm-operation
Type Definitions
@brief Error type definition
@brief Mask type definition
@brief PWM No. type definition
@brief PWM Clock definition
@brief PWM interrupt type def
@brief PWM mode type def
@brief PWM Stop Mode definition
@brief Interrupt callback function type