TWI data transfer

How can we transfer data in TWI Master/Slave mode? IS there a BSP example for this etc.