mirror of
https://github.com/rvtr/ctr_card_test.git
synced 2025-06-18 14:45:42 -04:00
カード評価関数の.cppファイルと.hファイルを追加
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_card_test@5 ff8ce827-af98-4349-adb5-4c00699b5328
This commit is contained in:
parent
2ee8f18481
commit
dc4dbc75e7
38
trunk/CardTestFunction.cpp
Normal file
38
trunk/CardTestFunction.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
/*---------------------------------------------------------------------------*
|
||||
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: $
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "CardTestFunction.h"
|
||||
|
||||
namespace nn{
|
||||
namespace red{
|
||||
namespace nakayama{
|
||||
|
||||
|
||||
bool cardFunctionTestStart(u8* buffer, size_t buffer_size, TestCaseID case_id, detailInfo* info)
|
||||
{
|
||||
NN_TLOG_("cardFunctionTestStart\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cardFunctionTestEnd(void)
|
||||
{
|
||||
NN_TLOG_("cardFunctionTestEnd\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
90
trunk/CardTestFunction.h
Normal file
90
trunk/CardTestFunction.h
Normal file
@ -0,0 +1,90 @@
|
||||
/*---------------------------------------------------------------------------*
|
||||
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 <nn.h>
|
||||
#include <nn/os.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace nn{
|
||||
namespace red{
|
||||
namespace nakayama{
|
||||
|
||||
/* **************************************************
|
||||
|
||||
struct
|
||||
|
||||
************************************************** */
|
||||
//‘SƒeƒXƒg‹¤’Ê
|
||||
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‚ÅŒvŽZ)
|
||||
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
|
Loading…
Reference in New Issue
Block a user