2021-11-16 06:03 AM
Hi, I want to use LIN communication as slave in my board.
I'm using SPC5Studio, and I'm checking the example code which the SPC58ECxx_RLA LIN Test Application for Discovery.
This example code is used two LIN nodes and master node ask for data to slave node. (202 code line)
I have expect when slave node receive ask something from the master node, this program access spc5xx_lin_rxi_interrupt API.
But If I use just only slave node, How Can I use transmit function?
I think one of solution is modification of spc5xx_lin_rxi_interrupt API, but is it have another solution?
Solved! Go to Solution.
2021-11-18 08:03 AM
Hello ,
The slave setting is in synchronous mode.
read/write function will block until operation has been completed
you do not need to update spc5xx_lin_rxi_interrupt_api
you can use the callback slave_tx_callback or slave_rx_callback
Best regards
Erwan
2021-11-18 08:03 AM
Hello ,
The slave setting is in synchronous mode.
read/write function will block until operation has been completed
you do not need to update spc5xx_lin_rxi_interrupt_api
you can use the callback slave_tx_callback or slave_rx_callback
Best regards
Erwan