def METHOD_NAME(self, offset: int, size: int, value: int):
    if offset == self.struct.ISR.offset:
        for bitmask in [
            RTC_ISR.TAMP1F, 
            RTC_ISR.TSOVF, 
            RTC_ISR.TSF, 
            RTC_ISR.WUTF, 
            RTC_ISR.ALRBF, 
            RTC_ISR.ALRAF, 
            RTC_ISR.RSF
        ]:
            if value & bitmask == 0:
                self.instance.ISR &= ~bitmask
        self.instance.ISR = (self.instance.ISR & ~RTC_ISR.INIT) | (value & RTC_ISR.INIT)            
        return
    data = (value).to_bytes(size, 'little')
    ctypes.memmove(ctypes.addressof(self.instance) + offset, data, size)    