getSoftDeviceVariant method

SoftDeviceVariant getSoftDeviceVariant()

Get the soft device to place into the hex file

Implementation

SoftDeviceVariant getSoftDeviceVariant(){
  int magicNumber = isab + ismno;

  if(addressHasMagicNumber(magicNumber)){
    return SoftDeviceVariant.s1x0;
  }

  for(int i = 0 ; i < 4; i++){
    magicNumber += isao;
    if (addressHasMagicNumber(magicNumber)){
      return SoftDeviceVariant.s132;
    }
  }

  return SoftDeviceVariant.unknown;
}