www.pudn.com > M8_cc1100_receive.rar > cc1100.h


/*H************************************************************************** 
* NAME:         cc1100.h          
*---------------------------------------------------------------------------- 
* Copyright (c) 2007 endylu 
*---------------------------------------------------------------------------- 
* RELEASE:      M8-cc1100   
* REVISION:     1.0      
*---------------------------------------------------------------------------- 
* PURPOSE: 
* This file contains the demonstration board definition 
*****************************************************************************/ 
 
/*_____ I N C L U D E S ____________________________________________________*/ 
 
/*_____ M A C R O S ________________________________________________________*/ 
 
 
/*_____ D E F I N I T I O N ________________________________________________*/ 
 
 
#define 	WRITE_BURST     	0x40						//连续写入 
#define 	READ_SINGLE     	0x80						//读 
#define 	READ_BURST      	0xC0						//连续读 
#define 	BYTES_IN_RXFIFO     0x7F  						//接收缓冲区的有效字节数 
#define 	CRC_OK              0x80 						//CRC校验通过位标志 
 
 
#define Chip_Select 2  
#define SPI_DO 3  
#define SPI_DI 4  
#define SPI_Clock 5  
 
//define CC1100 module interface 
#define	GDO0	PIND&(1<<2) 
#define	GDO2	PIND&(1<<3) 
#define	MISO	PINB&(1<