Line 12 says SDT018ATFT RGB interface,but actually SDT018ATFT is a LCD.You want to drive a ILI9163,which is a TFT device,using SPI.Try and find another driver for your device,because the code you just gave,will not give you the required result.
Type of connection(serial, parallel,..) is defined from hardware pin connection:
in my case I chose:
serial interface -> (IM2=0)
and MCU interface not RGB interface -> (RCM1=0)
On page no. 6 in the datasheet,4 pins that look relevant to controlling the operation of the TFT unit are PCLK(pixel clock),DE(data enable),HS(horizontal sync),and VS(vertical sync).Go through this datasheet again to know the relevant input(s) that need to be given to these pins and give it through the data pins.
I understand what you are telling me, but as you can see in the picture form my first post, i have selected a Serial SPI and MCU mode and according to the datasheet I don't need the RGB pins.
Can this display be used on 4 wire SPI communication or just on the 3 wire communication because i can't find the way to set the 4 wire communication up.