pwm_get

The interface has the following parameters.
  • Synopsis:
    struct pwm_device *pwm_get(struct device *dev, const char *con_id)
  • Description: The interface is used to look up and request a PWM device.
  • Parameter:
    • dev: The device for the PWM consumer.
    • con_id: The consumer ID (name).
  • Return:
    • Success: The pointer to the requested PWM device.
    • Failure: Error code.