SST39VF160.h
资源名称:直接操作并行口.zip [点击查看]
上传用户:fsjiahua
上传日期:2013-03-07
资源大小:89k
文件大小:1k
源码类别:
并口编程
开发平台:
Visual C++
- #define HY29_ID 0xad
- #define SST39_ROW_SIZE 4096*2 /* Must be 4096 bytes for 39VF160 */
- #define SST39_BLOCK_SIZE 64*1024 // 64k
- #define SST_39VF160 0x2249 //0x2782 /* SST 39VF160 device code */
- #define SST39_CMD_ADDRESS1 0xaaa//0x555 //只需要修改以上这里,别的地方不用东
- #define SST39_CMD_ADDRESS2 0x554//0x2aa
- #define SST39_AUTO_PG_ERASE1 0xaaaa //扇区擦除
- #define SST39_AUTO_PG_ERASE2 0x5555
- #define SST39_AUTO_PG_ERASE3 0x8080
- #define SST39_AUTO_PG_ERASE4 0xaaaa
- #define SST39_AUTO_PG_ERASE5 0x5555
- #define SST39_AUTO_PG_ERASE6 0x3030
- #define SST39_AUTO_PGRM1 0xaaaa
- #define SST39_AUTO_PGRM2 0x5555
- #define SST39_AUTO_PGRM3 0xa0a0
- #define SST39_READ_ID1 0xaaaa
- #define SST39_READ_ID2 0x5555
- #define SST39_READ_ID3 0x9090
- #define SST39_EXIT_READ_ID 0xf0f0
- int Write_39VF160(unsigned char *Src, DWORD Dst);
- int Read_39VF160(FILE* stream, DWORD Src,DWORD size);
- int Check_SST_39VF160(void);
- WORD SST39Check_Toggle_Ready(DWORD Dst);