/* param base AIPSTZ peripheral base pointer param master Peripheral for AIPSTZ. param accessControl Configuration is ORed from aipstz_peripheral_access_control_t.  */
void AIPSTZ_SetPeripheralAccessControl(AIPSTZ_Type *base, aipstz_peripheral_t peripheral, uint32_t accessControl)
/* param base AIPSTZ peripheral base pointer param master Peripheral for AIPSTZ. param accessControl Configuration is ORed from aipstz_peripheral_access_control_t.  */
void AIPSTZ_SetPeripheralAccessControl(AIPSTZ_Type *base, aipstz_peripheral_t peripheral, uint32_t accessControl)
{
    volatile uint32_t *reg = (uint32_t *)((uint32_t)base + ((uint32_t)peripheral >> 16));
    uint32_t mask          = (((uint32_t)peripheral & 0xFF00U) >> 8) - 1;
    uint32_t shift         = (uint32_t)peripheral & 0xFF;
    *reg = (*reg & (~(mask << shift))) | ((accessControl & mask) << shift);
}