/*---------------------------------------------------------------------------* Project: $project_name File: $name Copyright (C)$copyright_year Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: $ *---------------------------------------------------------------------------*/ #ifndef CARDTESTFUNCTION_H_ #define CARDTESTFUNCTION_H_ #include #include using namespace std; namespace nn{ namespace red{ namespace nakayama{ /* ************************************************** struct ************************************************** */ //全テスト共通 struct settingInfo { u8 up_down; u64 StartAddress; u64 EndAddress; u32 size; u32 data; u32 reserved1; u32 reserved2; }; struct detailInfo { u32 mID1; //ID1 u32 mID2; //ID2 u8 mUID[8]; //UID u32 mReadSpeed; //Mbyte/sec u32 mCRC; //CRC(softで計算) u32 mLOOP; //LoopCount u64 currAccessAddr; //CurrentAccessAddress u64 errorAddress[10]; //Error Address u64 errorData[10]; //Error Data }; /* ************************************************** enum ************************************************** */ enum TestCaseID { TID_FUNC_TEST1, TID_FUNC_TEST2, TID_FUNC_INTEG, TID_FUNC_RDID1, TID_FUNC_RDID2, TID_FUNC_RDSEQ_WITH_VERIFY, TID_FUNC_RDSEQ, TID_WR_PAGE_START, TID_WR_PAGE, TID_RD_WREXE, TID_RD_UID, TID_RD_REFRESH, TID_AGING_TEST, TID_READ_TEST, TID_READ_SPEED, TID_READ_READONLY }; bool cardFunctionTestStart(u8* buffer, size_t buffer_size, TestCaseID case_id, detailInfo* info); bool cardFunctionTestEnd(void); } /* nakayama */ } /* red */ } /* nn */ #endif