51 lines
2.0 KiB
C
Executable File
51 lines
2.0 KiB
C
Executable File
/****************************************************************************
|
|
*
|
|
* Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
|
*
|
|
* This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
|
* be copied by any method or incorporated into another program without
|
|
* the express written consent of Aerospace C.Power. This Information or any portion
|
|
* thereof remains the property of Aerospace C.Power. The Information contained herein
|
|
* is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
|
* liability for its use in any way and conveys no license or title under
|
|
* any patent or copyright and makes no representation or warranty that this
|
|
* Information is free from patent or copyright infringement.
|
|
*
|
|
* ****************************************************************************/
|
|
|
|
#ifndef _DS32X1GAXXX_H
|
|
#define _DS32X1GAXXX_H
|
|
|
|
#define DATA_FIELD_LEN 2048
|
|
#define SPARE_FIELD_LEN 64
|
|
|
|
#define PAGE_PER_BLOCK 64
|
|
#define BLOCK_PER_CHIP 1024
|
|
|
|
#define GET_FEATURE_CMD 0x0F
|
|
#define SET_FEATURE_CMD 0x1F
|
|
#define WRITE_EN_CMD 0x06
|
|
#define WRITE_DIS_CMD 0x04
|
|
#define PAGE_READ_CMD 0x13
|
|
#define READ_FROM_CACHE_CMD 0x03 /*0x0B*/
|
|
#define READ_FROM_CACHE_2_CMD 0x3B
|
|
#define READ_FROM_CACHE_4_CMD 0x6B
|
|
#define PROGRAM_LOAD_CMD 0x02
|
|
#define PROGRAM_LOAD_4_CMD 0x32
|
|
#define PROGRAM_LOAD_RANDOM_CMD 0x84
|
|
#define PROGRAM_LOAD_RANDOM_4_CMD 0x34
|
|
#define PROGRAM_EXECUTE_CMD 0x10
|
|
#define BLOCK_ERASE_CMD 0xD8
|
|
#define READ_ID_CMD 0x9F
|
|
#define RESET_CMD 0xFF
|
|
|
|
#define BLOCK_LOCK_ADDR 0xA0
|
|
#define OTP_ADDR 0xB0
|
|
#define STATUS_ADDR 0xC0
|
|
#define DRIVER_STRENTH_ADDR 0xD0
|
|
|
|
#define UNI_ID_PAGE_ADDR 0x00
|
|
#define PRAMTR_PAGE_ADDR 0x01
|
|
|
|
|
|
#endif/*_DS32X1GAXXX_H*/ |