/* Get the duty cycle value of the specified channel.  */
float pwmout_read(pwmout_t *obj)
/* Get the duty cycle value of the specified channel.  */
float pwmout_read(pwmout_t *obj)
{
	float value = 0;
	if (obj->period > 0) {
	    value = (float)obj->pulse / (float)obj->period;
	}
	return ((value > 1.0) ? (1.0) : (value));
}