Firmware/FFBoard/UserExtensions/Src/TMC4671.cpp
// Checks if important parameters are set to valid values
Checks if important parameters are set to valid values
Checks if important parameters are set to valid values
bool TMC4671::isSetUp(){
	if(this->conf.motconf.motor_type == MotorType::NONE){
		return false;
	}
	if(this->conf.motconf.phiEsource == PhiE::abn){
		if(abnconf.cpr == 0){
			return false;
		}
		if(this->encstate != ENC_InitState::OK){
			return false;
		}
	}
	return true;
}
bool TMC4671 :: isSetUp ( ) { if ( this -> conf . motconf . motor_type == MotorType :: NONE ) { return false ; } if ( this -> conf . motconf . phiEsource == PhiE :: abn ) { if ( abnconf . cpr == 0 ) { return false ; } if ( this -> encstate != ENC_InitState :: OK ) { return false ; } } return true ; }
Checks if important parameters are set to valid values
Checks if important parameters are set to valid values
// Encoder