spim.h
来自「Cypress cy7c63318 鼠标开发板的源代码」· C头文件 代码 · 共 47 行
H
47 行
//*****************************************************************************
//*****************************************************************************
// FILENAME: SPIM.h
// Version: 1.0, Updated on 2005/04/26 at 21:25:53
// Generated by PSoC Designer ver 4.2 b1013 : 02 September, 2004
//
// DESCRIPTION:
// SPIM SPIM User Module header file.
//-----------------------------------------------------------------------------
// Copyright (c) Cypress Semiconductor 2004. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************
#include <m8c.h>
#pragma fastcall16 SPIM_EnableInt
#pragma fastcall16 SPIM_DisableInt
#pragma fastcall16 SPIM_Start
#pragma fastcall16 SPIM_Stop
#pragma fastcall16 SPIM_SetMOSI
#pragma fastcall16 SPIM_SetMISO
#pragma fastcall16 SPIM_bIO
//-------------------------------------------------
// Prototypes of the SPIM API.
//-------------------------------------------------
extern void SPIM_EnableInt(void);
extern void SPIM_DisableInt(void);
extern void SPIM_Start(void);
extern void SPIM_Stop(void);
extern void SPIM_SetMOSI(BYTE bPin);
extern void SPIM_SetMISO(BYTE bPin);
extern BYTE SPIM_bIO(BYTE bTXData);
//-------------------------------------------------
// Constants for SPIM API's.
//-------------------------------------------------
#define SPIM_MOSI_P15 0
#define SPIM_MOSI_P16 1
#define SPIM_MIS0_P15 1
#define SPIM_MISO_P16 0
//-------------------------------------------------
// Register Addresses for SPIM
//-------------------------------------------------
// end of file SPIM.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?