cspibus.h
来自「mx27 f14v2 源代码。包括ADS板上诸多驱动的源码。」· C头文件 代码 · 共 63 行
H
63 行
//
// Copyright (C) 2004, Motorola Inc. All Rights Reserved
//
//------------------------------------------------------------------------------
//
// Copyright (C) 2004-2006, Freescale Semiconductor, Inc. All Rights Reserved.
// THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
// AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
//
//------------------------------------------------------------------------------
//
// File: cspibus.h
//
// Header file for cspi bus driver.
//
//------------------------------------------------------------------------------
#ifndef __CSPIBUS_H__
#define __CSPIBUS_H__
#ifdef __cplusplus
extern "C" {
#endif
//------------------------------------------------------------------------------
// Defines
#define CSPI_IOCTL_EXCHANGE 0x10
//------------------------------------------------------------------------------
// Types
//
// CSPI bus configuration
typedef struct
{
UINT8 chipselect;
UINT32 freq;
UINT8 bitcount;
BOOL sspol;
BOOL ssctl;
BOOL pol;
BOOL pha;
UINT8 drctl;
} CSPI_BUSCONFIG_T, *PCSPI_BUSCONFIG_T;
// CSPI exchange packet
typedef struct
{
PCSPI_BUSCONFIG_T pBusCnfg;
LPVOID pTxBuf;
LPVOID pRxBuf;
UINT32 xchCnt;
HANDLE xchEvent;
} CSPI_XCH_PKT_T, *PCSPI_XCH_PKT_T;
//------------------------------------------------------------------------------
// Functions
#ifdef __cplusplus
}
#endif
#endif // __CSPIBUS_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?