def METHOD_NAME(self, offset: int, size: int, value: int):
    if offset == self.struct.CKGR_MOR.offset:
        if value & CKGR_MOR.MOSCXTEN:
            self.instance.SR |= SR.MOSCXTS
        if value & CKGR_MOR.MOSCSEL:
            self.instance.SR |= SR.MOSCSELS
    elif offset == self.struct.MCKR.offset:
        if value & MCKR.CSS:
            self.instance.SR |= SR.MCKRDY
    elif offset == self.struct.CKGR_PLLAR.offset:
        if value & CKGR_PLLAR.ONE:
            self.instance.SR |= SR.LOCKA
    elif offset == self.struct.CKGR_UCKR.offset:
        if value & CKGR_UCKR.UPLLEN:
            self.instance.SR |= SR.LOCKU
    data = (value).to_bytes(size, 'little')
    ctypes.memmove(ctypes.addressof(self.instance) + offset, data, size