/* Gets the PRINCE Sub-Region Enable register. 
This function gets PRINCE SR_ENABLE register. */
status_t PRINCE_GetRegionSREnable(PRINCE_Type *base, prince_region_t region, uint32_t *sr_enable)
/* Gets the PRINCE Sub-Region Enable register. 
This function gets PRINCE SR_ENABLE register. */
status_t PRINCE_GetRegionSREnable(PRINCE_Type *base, prince_region_t region, uint32_t *sr_enable)
{
    status_t status = kStatus_Success;
    switch (region)
    {
        case kPRINCE_Region0:
            *sr_enable = base->SR_ENABLE0;
            break;
        case kPRINCE_Region1:
            *sr_enable = base->SR_ENABLE1;
            break;
        case kPRINCE_Region2:
            *sr_enable = base->SR_ENABLE2;
            break;
        default:
            status = kStatus_InvalidArgument;
            break;
    }
    return status;
}