def METHOD_NAME(self):
    """@brief Returns the current security state of the processor.
    @return @ref pyocd.core.target.Target.SecurityState "Target.SecurityState" enumerator.
    """
    dscsr = self.read32(self.DSCSR)
    if (dscsr & self.DSCSR_CDS) != 0:
        return Target.SecurityState.SECURE
    else:
        return Target.SecurityState.NONSECURE