📄 spim.h
字号:
//*****************************************************************************
//*****************************************************************************
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -