J
jodleren
Hi all
The documentation says:
typedef struct {
unsigned char name[4]; /* four-character file name */
unsigned char extension; /* extension number, range 0 - 99, 127
*/
unsigned char startpage; /* page number where file starts */
unsigned char numpages; /* number of pages occupied by file */
unsigned char attrib; /* file/directory attribute */
unsigned char bitmap[32]; /* current bitmap of the device */
} FileEntry;
[ http://files.dalsemi.com/auto_id/softdev/owdocs_400beta2/Docs/TMEX/file30mx.html
for
http://files.dalsemi.com/auto_id/softdev/owdocs_400beta2/Docs/TMEX/crfi4x7y.html
]
I tried:
struct TFileEntry
{
public char[] name = new char[4]; /* four-character
file name */
public char extension; /* extension
number, range 0 - 99, 127 */
public char startpage; /* page number
where file starts */
public char numpages; /* number of pages
occupied by file */
public char attrib; /* file/directory
attribute */
public char[] bitmap = new char[32]; /* current bitmap
of the device */
}
What is the right solution to this?
WBR
Sonnich
The documentation says:
typedef struct {
unsigned char name[4]; /* four-character file name */
unsigned char extension; /* extension number, range 0 - 99, 127
*/
unsigned char startpage; /* page number where file starts */
unsigned char numpages; /* number of pages occupied by file */
unsigned char attrib; /* file/directory attribute */
unsigned char bitmap[32]; /* current bitmap of the device */
} FileEntry;
[ http://files.dalsemi.com/auto_id/softdev/owdocs_400beta2/Docs/TMEX/file30mx.html
for
http://files.dalsemi.com/auto_id/softdev/owdocs_400beta2/Docs/TMEX/crfi4x7y.html
]
I tried:
struct TFileEntry
{
public char[] name = new char[4]; /* four-character
file name */
public char extension; /* extension
number, range 0 - 99, 127 */
public char startpage; /* page number
where file starts */
public char numpages; /* number of pages
occupied by file */
public char attrib; /* file/directory
attribute */
public char[] bitmap = new char[32]; /* current bitmap
of the device */
}
What is the right solution to this?
WBR
Sonnich