refer datasheet about I2C tranfer .
" SSPCON and SSPSTAT are the control and status
registers in SPI mode operation.The SSPCON register
is readable and writable. The lower six bits of the
SSPSTAT are read-only. The upper two bits of the
SSPSTAT are read/write.
SSPSR is the shift register used for shifting data in or
out. SSPBUF is the buffer register to which data bytes
are written to or read from.
In receive operations, SSPSR and SSPBUF together
create a double-buffered receiver. When SSPSR
receives a complete byte, it is transferred to SSPBUF
and the SSPIF interrupt is set.
During transmission, the SSPBUF is not doublebuffered.
A write to SSPBUF will write to both SSPBUF
and SSPSR."
the operator "||" is byte wise or.
and
0x1F = 0001 1111
starting from 1st ";0" => its in slave mode
well for the ext things.. refer datasheet! there's plenty of info..
so its checking for