Hi Eliezer Oliveira Cardoso,
Actually, the baud rate relate register is MSCAN_CANBTR0 and MSCAN_CANBTR1.
These codes:
sMSCANConfig.sBaudRateSetting.SJW = BAUD_RATE_SJW;
sMSCANConfig.sBaudRateSetting.BRP = BAUD_RATE_BRP;
sMSCANConfig.sBaudRateSetting.SAMP = BAUD_RATE_SAMP;
sMSCANConfig.sBaudRateSetting.TSEG1 = BAUD_RATE_TSEG1;
sMSCANConfig.sBaudRateSetting.TSEG2 = BAUD_RATE_TSEG2;
is just configure register MSCAN_CANBTR0 and MSCAN_CANBTR1.
CAN_SendItemToBuffer function will send your CAN data, if you test the code on your KE06, you will find it.
The sample code is based on FRDM-KE06, you can test it and combine the KE06 reference manual to understand it.
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------