📄 spi_mem.h
字号:
/*
* Copyright 1999 by KVASER AB
* P.O Box 4076 SE-51104 KINNAHULT, SWEDEN
* E-mail: staff@kvaser.se WWW: http://www.kvaser.se
*
* This software is a part of the MCP2510 Evaluation Kit from Microchip, Inc.
*
* $Header: /Customers/MicroChip/Code/mcTest/inc/spi_mem.h 1 99-06-29 15:26 Mats $
* $Revision:: 1 $ $NoKeywords: $
*
* Description:
*
*/
#ifndef _SPI_MEM_H_
#define _SPI_MEM_H_
#include "..\inc\std.h"
#define MEMBLOCK1 0x01
#define MEMBLOCK2 0x02
#define MEMBLOCK3 0x04
#define MEMBLOCK4 0x08
extern void SPI_mem_select (void);
extern void SPI_mem_unselect (void);
extern void SPI_mem_RD_address(uchar output);
extern void SPI_mem_WR_address(uchar output);
/*
* Write Enable memory device
*/
extern void SPI_mem_WR_enable(void);
/*
* Read the memory status
*/
extern uchar SPI_mem_RD_status ( void );
/*
* Write the status flaggs to memory device
*/
extern void SPI_mem_WR_status ( uchar outdata );
/*
* Wait here until memory is written
*/
extern uchar SPI_mem_busy ( uchar outdata );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -