lib/Seeed_Arduino_AS5600/AS5600.cpp
/*******************************************************
  Method: burnMaxAngleAndConfig
  In: none
  Out: 1 success
      -1 burn limit exceeded
      -2 max angle is to small, must be at or above 18 degrees
  Description: burns max angle and config data to chip.
  THIS CAN ONLY BE DONE 1 TIME
*******************************************************/
burnMaxAngleAndConfig
In: none
Out: 1 success
1 burn limit exceeded
2 max angle is to small, must be at or above 18 degrees
Description: burns max angle and config data to chip.
THIS CAN ONLY BE DONE 1 TIME
burnMaxAngleAndConfig In : none Out : 1 success 1 burn limit exceeded 2 max angle is to small must be at or above 18 degrees Description : burns max angle and config data to chip . THIS CAN ONLY BE DONE 1 TIME
int AMS_5600::burnMaxAngleAndConfig()
{
  int retVal = 1;
  _maxAngle = getMaxAngle();
  if (getBurnCount() == 0)
  {
    if (_maxAngle * 0.087 < 18)
      retVal = -2;
    else
      writeOneByte(_burn, 0x40);
  }
  else
    retVal = -1;
  return retVal;
}
int AMS_5600 :: burnMaxAngleAndConfig ( ) { int retVal = 1 ; _maxAngle = getMaxAngle ( ) ; if ( getBurnCount ( ) == 0 ) { if ( _maxAngle * 0.087 < 18 ) retVal = -2 ; else writeOneByte ( _burn , 0x40 ) ; } else retVal = -1 ; return retVal ; }
Method: burnMaxAngleAndConfig
In: none
Out: 1 success
1 burn limit exceeded
2 max angle is to small, must be at or above 18 degrees
Description: burns max angle and config data to chip.
Method : burnMaxAngleAndConfig In : none Out : 1 success 1 burn limit exceeded 2 max angle is to small must be at or above 18 degrees Description : burns max angle and config data to chip .