/* And one of the values is included from this group: */
uint32_t HibernateTamperStatusGet(void)
/* And one of the values is included from this group: */
uint32_t HibernateTamperStatusGet(void)
{
    uint32_t ui32Status, ui32Reg;
    ui32Reg = HWREG(HIB_TPSTAT);
    ui32Status = (ui32Reg & (HIB_TPSTAT_XOSCST | HIB_TPSTAT_XOSCFAIL));
    ui32Status |= ((ui32Reg & HIB_TPSTAT_XOSCST) ? 0 :
                   HIBERNATE_TAMPER_STATUS_EXT_OSC_ACTIVE);
    ui32Status |= ((ui32Reg & HIB_TPSTAT_XOSCFAIL) ? 0 :
                   HIBERNATE_TAMPER_STATUS_EXT_OSC_VALID);
    ui32Status |= ((ui32Reg & HIB_TPSTAT_STATE_M) << 3);
    if ((ui32Reg & HIB_TPSTAT_STATE_M) == 0)
    {
        ui32Status |= HIBERNATE_TAMPER_STATUS_INACTIVE;
    }
    return (ui32Status);
}