Need explination of these two decloration software lines

What do the following lines do? Generaly not specificaly.

What do the terms mean/and or do? 1) xdata * xdata mean? 2) s_pSIN = (MASTER_2_AFPU*)&s_SIN;

static xdata uchar s_SIN[sizeof(MASTER_2_AFPU)];
static MASTER_2_AFPU xdata * xdata s_pSIN = (MASTER_2_AFPU*)&s_SIN;

Parents
  • Note that you can have a pointer that are stored in xdata memory.

    And you can have a pointer that points to an object stored in xdata memory.

    And then you can have a pointer stored in xdata memory, and pointing to an object in xdata memory. Hence the need for one xdata attribute before, and one after the star.

Reply
  • Note that you can have a pointer that are stored in xdata memory.

    And you can have a pointer that points to an object stored in xdata memory.

    And then you can have a pointer stored in xdata memory, and pointing to an object in xdata memory. Hence the need for one xdata attribute before, and one after the star.

Children
No data
More questions in this forum