Firmware/FFBoard/UserExtensions/Src/TMC4671.cpp
/**
 * Returns measured flux and torque as a pair
 * Flux is first, torque second item
 */
Returns measured flux and torque as a pair
Flux is first, torque second item
Returns measured flux and torque as a pair Flux is first torque second item
std::pair<int32_t,int32_t> TMC4671::getActualCurrent(){
	uint32_t tfluxa = readReg(0x69);
	int16_t af = (tfluxa & 0xffff);
	int16_t at = (tfluxa >> 16);
	return std::pair<int16_t,int16_t>(af,at);
}
std :: pair < int32_t , int32_t > TMC4671 :: getActualCurrent ( ) { uint32_t tfluxa = readReg ( 0x69 ) ; int16_t af = ( tfluxa & 0xffff ) ; int16_t at = ( tfluxa >> 16 ) ; return std :: pair < int16_t , int16_t > ( af , at ) ; }
Returns measured flux and torque as a pair
 Flux is first, torque second item
Returns measured flux and torque as a pair Flux is first torque second item