Skip to main content
BCHOI.1
Visitor II
November 16, 2021
Solved

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

  • November 16, 2021
  • 1 reply
  • 1061 views

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?

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    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

    1 reply

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    November 18, 2021

    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