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