I'm using the following to allow me to choose which 2D array I use, dynamically.
const prog_uint16_t (*p)[8];
p = arrayname;
This works fine for a 2D array of size [3][8], however I require [10][1025].
When I try this:
const prog_uint16_t (*p)[1025];
p = arrayname;
I get a "Cannot convert" error.
Any ideas? Thanks!
EDIT:
Here's the declaration of the 2D array that works. The one that doesn't is declared the same way, just with a different number of entries ([10][1025]).
const prog_uint16_t TRI[3][8]={{10,20,30,40,50,60,70,80},{11,21,31,41,51,61,71,81},{12,22,32,42,52,62,72,82}};
Thanks!
arrayname. Also,(*p)[8]is not a pointer to a 2d array. cdecl.orgpis a pointer to array of 8 constprog_uint16_tconst prog_uint16_t (*p)[x][y];<- that's a pointer to a 2d array