Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

External memory storage

To get information on external memory storage, change the code from this:

{
   uint32 dwBytesFree;
   uint32  dwBytesTotal;
   int nErr;

   nErr = IFILEMGR_GetFreeSpaceEx(piFileMgr,
      AEEFS_CARD0_DIR, &dwBytesTotal, &dwBytesFree);
   // If nErr is SUCCESS, dwBytesTotal is the total filesystem size
   // and dwBytesFree is the free bytes on the filesystem.
}

to this:

{
   AEEFSFreeSpace fsFreeSpace;
   int nSize = sizeof(fsFreeSpace);
   int nErr;
   nErr = ISHELL_GetDeviceInfoEx(piShell,
      AEE_DEVICEITEM_FSSPACE_CARD0, (void*)&fsFreeSpace, &nSize);
   // If nErr is SUCCESS, fsFreeSpace.qwTotalSpace is the total
   // filesystem size and fsFreeSpace.qwFreeSpace is the free
   // bytes on the filesystem.
}