?? exbus.h
字號:
/************************************************************************************
* Copyright (c), 2004-2007,西安銘朗電子科技有限責(zé)任公司
* All rights reserved.
*
* Http: www.mlarm.com
* Email: mlarm@mlarm.com
*
* File name: exbus.h
* Project : ML-F020ICB
* Processor: C8051F020
* Compiler : Keil C51 Compiler
*
* Author: 李林利
* Version: 1.20
* Date: 2007.6.1
* Email: GavinLi@126.com
*
* Description: 本文件是外擴(kuò)總線驅(qū)動控制程序頭文件;
*
* Others: none;
*
* Function List:
* 1. void EXBUS_WriteByte(unsigned int addr, unsigned char val)
* 2. void EXBUS_Write(unsigned int addr, unsigned char *p, unsigned int len)
* 3. unsigned char EXBUS_ReadByte(unsigned int addr)
* 4. void EXBUS_Read(unsigned int addr, unsigned char *p, unsigned int len)
*
* History:
* 1. Author: 李林利
* Version: 1.10
* Date: 2007.3.12
* Modification: none
*
* 2. Author: 李林利
* Version: 1.00
* Date: 2004.11.24
* Modification: 建立文件
*
*************************************************************************************/
/*************************************************************************************
* 外擴(kuò)總線驅(qū)動控制程序函數(shù)使用說明
*
* 1. 本文件所聲明函數(shù)在任何情況下都可以使用;
* 2. 其它細(xì)節(jié)詳見具體函數(shù)說明;
*
*************************************************************************************/
/*************************************************************************************/
//
// 外擴(kuò)總線驅(qū)動控制程序函數(shù)外部引用聲明
//
/*************************************************************************************/
/***********************************************************************************
* Function: EXBUS_WriteByte;
*
* Description: 外部總線寫單字節(jié)數(shù)據(jù)函數(shù);
*
* Input: addr, 總線地址; val,要寫入的數(shù)據(jù);
*
* Output: none;
*
* Return: none;
*
* Note: addr范圍:0x0000~0x07ff,本函數(shù)不作范圍檢查,請客戶注意;
************************************************************************************/
void EXBUS_WriteByte(unsigned int addr, unsigned char val);
/***********************************************************************************
* Function: EXBUS_Write;
*
* Description: 外部總線寫多數(shù)據(jù)函數(shù);
*
* Input: addr, 總線地址; *p, 要寫入數(shù)據(jù)的指針; len,寫入的數(shù)據(jù)長度;
*
* Output: none;
*
* Return: none;
*
* Note: addr范圍:0x0000~0x07ff,本函數(shù)不作范圍檢查,請客戶注意;
************************************************************************************/
void EXBUS_Write(unsigned int addr, unsigned char *p, unsigned int len);
/***********************************************************************************
* Function: EXBUS_ReadByte;
*
* Description: 外部總線讀單字節(jié)數(shù)據(jù)函數(shù);
*
* Input: addr, 總線地址;
*
* Output: none;
*
* Return: 讀出的數(shù)據(jù);
*
* Note: addr范圍:0x0000~0x07ff,本函數(shù)不作范圍檢查,請客戶注意;
************************************************************************************/
unsigned char EXBUS_ReadByte(unsigned int addr);
/***********************************************************************************
* Function: EXBUS_Read;
*
* Description: 外部總線讀多數(shù)據(jù)函數(shù);
*
* Input: addr, 總線地址; *p, 要讀出數(shù)據(jù)的指針; len,要讀出的數(shù)據(jù)長度;
*
* Output: *p, 要讀出數(shù)據(jù)的指針;
*
* Return: none;
*
* Note: addr范圍:0x0000~0x07ff,本函數(shù)不作范圍檢查,請客戶注意;
************************************************************************************/
void EXBUS_Read(unsigned int addr, unsigned char *p, unsigned int len);
/***********************************************************************************/
// 文件結(jié)束
/***********************************************************************************/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -