AnsweredAssumed Answered

A question about DSP communicate with ARM

Question asked by Graydon on Nov 13, 2014
Latest reply on Jan 14, 2015 by jobo23

In sharc DSP, all basic data type size: sizeof(... ) =1, However, when communicate with ARM(MCU) using SPI etc. Assuming set spi data width:8, the received data like this:  char rcv_buf[16]={0xa5,0x1,0x2,0x3,0x05,...,0xf};

But ARM process send the data as a struct  as follow:


struct{

    short magic;

     short type;

    char num;

   ...

    char data[8];

}


How DSP convert the rcv_buf to this struct.? This a example, In fact, there are many struct communicated with ARM.

Outcomes