RA2E1 acts as an SMBUS slave device

I am using the RA2E1 series from Renesas to act as an SMBUS slave device. I hope to receive data of varying lengths (for Block Read/Write operations). Are there any similar demos available for reference? Since the data length is variable, will I have to accept each piece of data one by one? Do you have any suggestions?