Spi slave implementation using bit banging

Can anyone tell is it possible to write slave spi code using bit banging in avr for reading data from master.
If possible please provide reference link or tutorial link because I am unable to find slave side code for spi.

Neo2294:
Can anyone tell is it possible to write slave spi code using bit banging in avr for reading data from master.
If possible please provide reference link or tutorial link because I am unable to find slave side code for spi.

By 'bit banging' -- have you wanted to mean that you don't wish to use Arduino's commands like SPI.transfer() for data exchange; instead, you wish to use register level code like 'byte x = SPDR?

By bit banging my slave Arduino will receive data using normal gpio from master Arduino who is using spi pin.

Neo2294:
By bit banging my slave Arduino will receive data using normal gpio from master Arduino who is using spi pin.

In SPI communication, it is the Master that initiates data exchange by creating SCK pulses through the execution of one of the following two blocks of codes:

byte x = SPI.transfer(0x45);

or

SPDR = 0x45;      //data byte 45 is being sent for Slave   
while(bitRead(SPSR, SPIF) != HIGH)
   ;
byte x = SPDR;    //data received from slave is saved

I have wanted to know which block (upper block or lower block) you want to use for data exchange. The word 'bit banging' has a specific meaning.