X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fdc_motor.h;h=9e7104037bc9f50cc70bb30dc21c350fd0b8f677;hb=3869cb55efcc879e7df05b785ce9759cb59b5836;hp=3f4b15dd0ae20f49ec067fcd400ccf3d48480f44;hpb=c7fb36e3638f5dabccb1811d53ec8b781b06299d;p=bertos.git diff --git a/bertos/drv/dc_motor.h b/bertos/drv/dc_motor.h index 3f4b15dd..9e710403 100644 --- a/bertos/drv/dc_motor.h +++ b/bertos/drv/dc_motor.h @@ -77,6 +77,7 @@ typedef struct DCMotorConfig PwmDev pwm_dev; ///< Pwm channel. pwm_freq_t freq; ///< Pwm waveform frequency. + bool pol; ///< Pwm waveform polarity. adc_ch_t adc_ch; ///< ADC channel. adcread_t adc_max; ///< ADC max scale value. @@ -84,6 +85,8 @@ typedef struct DCMotorConfig mtime_t sample_delay; ///< Delay before to sampling. bool dir; ///< Default direction for select DC motor. + int speed_trm_id; ///< Index of trimmer to set speed. + dc_speed_t speed; ///< Default speed value for select DC motor. } DCMotorConfig;