cancel
Showing results for 
Search instead for 
Did you mean: 

How to send can messages with different cycles in spc5 studio?

donggenhan
Associate

hello~

I am using the spc58ec disp chip and want to continuously send CAN messages of different cycles.

Here is the code what i wrote:

////

void send_10ms(){

    uint32_t rv;

    CANTxFrame msg_10ms;

    msh_10ms.ID = 0x11U;

    msh_10ms.DLC = 8U;

    msh_10ms.data32[0] = 0x1234U;

    rv = can_lld_transmit(&CAND2, 0, &msg_10ms);

    osalThreadDelayMilliseconds(10);

}

// and also have a similer fcuntion which send 100ms can message

////

I want them to send in different cycles.

The above can messages can only be sent in 100ms, how should they be modified?

Thank you~

 

0 REPLIES 0