/********************************************************
 * File generated by EDD Codegenerator
 * Version 2.0.5318.27504
 * ------------------------------------------------------
 * File created: 2014-07-29
 ********************************************************/
#include "VvoTableManager.h"
#include "DeviceInfo.h"
#include <assert.h>
static void PatchEntry(vu16 offset, vu8* buffer);
typedef struct VvoAccessor {
   vu8  paraLen;
   vu16 paraNum;
   const vu8* paraIdx;
   vu8 dataSize;
} VvoAccessor;

static const VvoAccessor VvoAccessorTable[] = {
/*  nIdx, Para,     Idx,         Size        */
};

/* to be implemented:
*/
static void PatchEntry(vu16 offset, vu8* buffer)
{
    switch(offset) {
    default: break;
    }
}
void VvoTableManager_GetEntry(vu16 offset, VvoTableEntry* pDesc)
{
   vu16 tableSize = VvoTableManager_GetSize();

   vu8 len = sizeof(pDesc->paraIdx);
   memset(pDesc->paraIdx, 0, len);
   if (offset < tableSize)
   {
       const VvoAccessor* pAccessor = &VvoAccessorTable[offset];
       assert(pAccessor->paraLen < len);
       if (pAccessor->paraLen < len)
       {
           pDesc->paraNum = pAccessor->paraNum;
           memcpy(pDesc->paraIdx, pAccessor->paraIdx, pAccessor->paraLen);
           PatchEntry(offset, pDesc->paraIdx);
           pDesc->dataSize = pAccessor->dataSize;
       }
   }
}

vu16 VvoTableManager_GetSize()
{
	return sizeof(VvoAccessorTable) / sizeof(VvoAccessor);
}
