getPolarity method
Returns the polarity of the PWM.
Implementation
Polarity getPolarity() {
switch (_getInt32Value(_nativePWMgetPolarity)) {
case 0:
return Polarity.pwmPolarityNormal;
case 1:
return Polarity.pwmPolarityInversed;
default:
throw PWMexception(PWMerrorCode.pwmErrorQuery, 'Unkown polarity');
}
}