ctr_card_test/trunk/CardTestFunction.h
(no author) dc4dbc75e7 カード評価関数の.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
2010-02-18 09:57:12 +00:00

91 lines
2.2 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*---------------------------------------------------------------------------*
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