Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32g0/STM32G041/TAMP/CR2#0x0
control register 2
TAMP1NOER
TAMP2NOER
TAMP1MSK
TAMP2MSK
TAMP1TRG
TAMP2TRG
https://github.com/modm-io/cmsis-svd-stm32