cspibus.h

来自「freescale i.mx31 BSP CE5.0全部源码」· C头文件 代码 · 共 69 行

H
69
字号
//------------------------------------------------------------------------------
//
//  Copyright (C) 2004, Motorola Inc. All Rights Reserved
//
//------------------------------------------------------------------------------
//
//  Copyright (C) 2004, Freescale Semiconductor, Inc. All Rights Reserved
//  THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT
//  BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF
//  Freescale Semiconductor, Inc.
//
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//
//  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 + -
显示快捷键?