Technical information
CSI to SPI Peripheral Communication in V850ES Microcontrollers
** V850ES/KF1+ and V850ES/KE1+ 32-Bit Single-Chip Microcontrollers
**
** Copyright(C) NEC Electronics Corporation 2002-2004
** All rights reserved by NEC Electronics Corporation
**
** This program should be used on your own responsibility.
** NEC Electronics Corporation assumes no responsibility for any losses
** incurred by customers or third parties arising from the use of this file.
**
** Filename : macrodriver.h
** APIlib: V850ESKX1H.lib V1.33 [24 Sep 2004]
**
Device: uPD70F3318Y
**
** Compiler: NEC/CA850
**
*****************************************************************************
*/
#ifndef _MDSTATUS_
#define _MDSTATUS_
#pragma ioreg /*enable use the register directly in ca850
compiler*/
/* data type defintion */
typedef unsigned int UINT;
typedef unsigned short USHORT;
typedef unsigned char UCHAR;
typedef unsigned char BOOL;
#define MD_ON 1
#define MD_OFF 0
#define MD_TRUE 1
#define MD_FALSE 0
#define MD_STATUS unsigned short
#define MD_STATUSBASE 0x0
/*status list definition*/
#define MD_OK MD_STATUSBASE+0x0 /*register setting OK*/
#define MD_RESET MD_STATUSBASE+0x1 /*reset input*/
#define MD_SENDCOMPLETE MD_STATUSBASE+0x2 /*send data complete*/
#define MD_ADDRESSMATCH MD_STATUSBASE+0x3 /*IIC slave address match*/
#define MD_OVF MD_STATUSBASE+0x4 /*timer count
overflow*/
#define MD_DMA_END MD_STATUSBASE+0x5 /*DMA transfer end*/
#define MD_DMA_CONTINUE MD_STATUSBASE+0x6 /*DMA transfer
continue*/
#define MD_SPT MD_STATUSBASE+0x7 /*IIC stop*/
#define MD_NACK MD_STATUSBASE+0x8 /*IIC no ACK*/
#define MD_SLAVE_SEND_END MD_STATUSBASE+0x9 /*IIC slave send
end*/
#define MD_SLAVE_RCV_END MD_STATUSBASE+0x0 /*IIC slave receive
end*/
78