/* param base AIPSTZ peripheral base pointer param master Masters for AIPSTZ. param privilegeConfig Configuration is ORed from aipstz_master_privilege_level_t.  */
void AIPSTZ_SetMasterPriviledgeLevel(AIPSTZ_Type *base, aipstz_master_t master, uint32_t privilegeConfig)
/* param base AIPSTZ peripheral base pointer param master Masters for AIPSTZ. param privilegeConfig Configuration is ORed from aipstz_master_privilege_level_t.  */
void AIPSTZ_SetMasterPriviledgeLevel(AIPSTZ_Type *base, aipstz_master_t master, uint32_t privilegeConfig)
{
    uint32_t mask  = ((uint32_t)master >> 8) - 1;
    uint32_t shift = (uint32_t)master & 0xFF;
    base->MPR      = (base->MPR & (~(mask << shift))) | (privilegeConfig << shift);
}