cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use LIN Slave mode? (SPC58EC-Disp)

BCHOI.1
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

0693W00000GY4EnQAL.png 

Best regards

Erwan

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

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

0693W00000GY4EnQAL.png 

Best regards

Erwan