www.pudn.com > Bit1611_demo_code.rar > SPI.H


/*  *********************************************************************** 
 
         Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd 
 
        All rights are reserved. Reproduction in whole or in parts is 
    prohibited without the prior written consent of the copyright owner. 
   ---------------------------------------------------------------------- 
 
    Module: SPI.H 
 
    Purpose: Interface of SPI module. 
 
    Version: 0.01                                   03:20PM  2005/08/22 
 
    Compiler: Keil 8051 C Compiler v8.01 
 
    Reference: 
 
   ---------------------------------------------------------------------- 
    Modification: 
 
    R0.01 03:20PM  2005/08/22 Jeffrey Chang 
    Reason: 
        1. Original. 
    Solution: 
 
   *********************************************************************** */ 
 
#ifndef _SPI_H_ 
#define _SPI_H_ 
 
 
/* ------------------------------------ 
    Header Files 
   ------------------------------------ */ 
#include "platform.h" 
 
 
/* ------------------------------------ 
    Macro Definition 
   ------------------------------------ */ 
#undef  EXTERN 
 
#ifdef  _SPI_C_ 
    #define EXTERN 
#else 
    #define EXTERN extern 
#endif 
 
 
 
 
 
/* ------------------------------------ 
    Type Definitions 
   ------------------------------------ */ 
 
/* ------------------------------------ 
    Variables Definitions/Declarations 
   ------------------------------------ */ 
 
 
/* ------------------------------------ 
    Function Prototypes 
   ------------------------------------ */ 
EXTERN void SPI_Init(void); 
EXTERN void SPI_PowerOff(void); 
EXTERN void SPI_PowerOn(void); 
EXTERN void SPI_TxByte(UB8 bReg, UB8 bData); 
 
#endif /* _SPI_H_ */ 
 
 
/* ********************************************************************** 
 
    Description: 
 
   ********************************************************************** */ 
 
/* %% End Of File %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */