Please go through simplex CAN communication code example written for PSoC 4200M family. You can use the same for PSoC 4100S family also since the internal CAN architecture is same. You just have to change the part number in the Creator.
Thank you for your response.
It was very helpful.