nfc_base.h

来自「freescale atk source code」· C头文件 代码 · 共 35 行

H
35
字号
/*****************************************************************************
** nfc_base.h
**
** Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
**
** This file contains copyrighted material. Use of this file is
** restricted by the provisions of a Freescale Software License
** Agreement, which has either been electronically accepted by
** you or has been expressly executed between the parties.
**
** Description: Explanation for the usage of this file.
**
** Revision History:
** -----------------
*****************************************************************************/

#ifndef __NFC_BASE_H__
#define __NFC_BASE_H__

#include "type.h"

u8 nand_block_is_good(u32 block);
s16 nand_mark_bad_block(u32 block);
s16 nand_erase_block(u32 block);
s16 nand_read_page(u32 block, u32 page, u32 dest, u32 len,u32 offs);
s16 nand_write_page(u32 block, u32 page, u32 src, u32 len,u8 file_format);
s16 nand_compare_page(u32 block, u32 page, u32 dest, u32 len);
void nfc_memcpy(u32 s, u32 d, u32 len);
void copy_spare(nand_t *nd, char *pbuf, char *pspare,int len, u8 bfrom);
void nand_bi_main_sp(void);
void nfc_base_init(void);
void nfc_send_read_id(u32* tmp);
void nfc_set_fms(u8 bus_width, u32 page_size,u16 oob_size);
#endif /* __NFC_BASE_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?