📄 em9010.h
字号:
/*
* Copyright (c) 1999 by TriMedia Technologies.
*
* +------------------------------------------------------------------+
* | This software is furnished under a license and may only be used |
* | and copied in accordance with the terms and conditions of such |
* | a license and with the inclusion of this copyright notice. This |
* | software or any other copies of this software may not be provided|
* | or otherwise made available to any other person. The ownership |
* | and title of this software is not transferred. |
* | |
* | The information in this software is subject to change without |
* | any prior notice and should not be construed as a commitment by |
* | TriMedia Technologies. |
* | |
* | this code and information is provided "as is" without any |
* | warranty of any kind, either expressed or implied, including but |
* | not limited to the implied warranties of merchantability and/or |
* | fitness for any particular purpose. |
* +------------------------------------------------------------------+
*
* Module name : em9010.h 1.2
*
* Last update : 18:43:40 - 00/11/09
*/
#ifndef _EM9010_H_
#define _EM9010_H_
#include <tm1/tmBoard.h>
#include "xioReg.h"
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct {
UInt32 regWrite; /* XIO register for writes */
UInt32 regRead; /* XIO register for reads */
UInt8 clk; /* clock */
UInt8 sdaW; /* data write */
UInt8 sdaWEn; /* data write enable */
UInt8 sdaR; /* data read */
} em9010Param_t, *pem9010Param_t;
/* put data and clock lines into known state */
extern tmLibdevErr_t em9010Init(pem9010Param_t param);
/* write register */
extern tmLibdevErr_t em9010WriteReg(pem9010Param_t param, UInt8 addr, UInt8 data);
/* read register */
extern tmLibdevErr_t em9010ReadReg(pem9010Param_t param, UInt8 addr, UInt8 * data);
#if defined(__cplusplus)
}
#endif
#endif /* _EM9010_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -