Home / RL-ARM User's Guide (MDK v4)
CID_REG
The type CID_REG contains memory card CID register values.
The structure is defined in the file File_Config.h as
follows:
typedef struct {
U32 PSN; /* Product serial number */
U16 OID; /* OEM/Application ID */
U8 MID; /* Manufacturer ID */
U8 PRV; /* Product revision */
U16 MDT; /* Manufacturing date */
U8 PNM[6]; /* Product name */
} CID_REG;
Example:
#include <file_config.h>
...
CID_REG cid;
...
printf ("Manufacturer ID: %d (0x%.2X)\n", cid.MID, cid.MID);
printf ("OEM/Application ID: %c%c\n", cid.OID >> 8, cid.OID & 0xFF);
printf ("Product name: %c%c%c%c%c\n", cid.PNM[0], cid.PNM[1], cid.PNM[2],
cid.PNM[3], cid.PNM[4]);
printf ("Product revision: %d.%d\n", cid.PRV >> 4, cid.PRV & 0x0F);
printf ("Product serial number: 0x%X\n", cid.PSN);
printf ("Manufacturing date: %d/%.2d\n", cid.MDT & 0x0F, cid.MDT >> 4);
...