sdm_channel_set_duty() function
The alias function of `sdm_channel_set_pulse_density`, it decides the pulse density of the output signal
Arguments
chan
SDM channel created by `sdm_new_channel`
duty
Actually it's the quantized pulse density of the PDM output signal
Return value
- ESP_OK: Set duty cycle successfully - ESP_ERR_INVALID_ARG: Set duty cycle failed because of invalid argument - ESP_FAIL: Set duty cycle failed because of other error
Notes
`sdm_channel_set_pulse_density` has a more appropriate name compare this alias function, suggest to turn to `sdm_channel_set_pulse_density` instead