亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? csl_spi.h

?? 基于ti tms320c672x下音頻開發例子程式
?? H
?? 第 1 頁 / 共 3 頁
字號:
/** @mainpage SPI
*
* @section Introduction
*
* @subsection xxx Purpose and Scope
* The purpose of this document is to identify a set of common CSL APIs for
* the SPI Module across various devices. The CSL developer is expected
* to refer to this document while designing APIs for these modules. Some
* of the listed APIs may not be applicable to a given SPI Module. While
* in other cases this list of APIs may not be sufficient to cover all the
* features of a particular SPI Module. The CSL developer should use his
* discretion in designing new APIs or extending the existing ones to cover
* these.
*
*
* @subsection aaa Terms and Abbreviations
*   -# CSL:  Chip Support Library
*   -# API:  Application Programmer Interface
*   -# SPI:  Serial Port Interface
*   -# MibSPI1: Multi Buffer SPI
*
* @subsection References
*    -# CSL 3.x Technical Requirements Specifications Version 0.5, dated
*       May 14th, 2003
*    -# MibSPI1 functional specification:
*       http://dspdesign.india.ti.com/twiki/pub/Trinity/TrinityMiBSPI1/
*                                                        SPI_SPI_Platform.pdf
*
* @subsection Assumptions
*     The abbreviations SPI, spi1 and Spi have been used throughout
*     this document to refer to the Multi Buffer Serial Port Interface Module
*/

/** @file csl_spi1.h
 *
 *  @brief Header file for functional layer of CSL
 *
 *  Description
 *    - The different enumerations, structure definitions
 *      and function declarations
 *
 *  Modification 1
 *    - modified on: 26/12/2003
 *    - reason: created the sources
 *
 *  Modification 2
 *    - modified on: 31/12/2003
 *    - reason: created better documentation
 *
 *  Modification 3
 *    - modified on: 10/05/2004
 *    - reason: removed MIB from code & documnentaion
 *
 *  @date 26th Dec, 2003
 *  @author Sumant S. NaikKhanvte
 */

/** @file csl_spi.h
 *
 * @brief   Header file for functional layer of CSL
 *
 * Description
 *    - The defines inline function definitions
 *
 */

/* =============================================================================
 *  Revision History
 *  ===============
 *  11-oct-2004 Hs updated code review comments
 *  10-sep-2004 Hs updated CSL_SpiObj and added CSL_SpiBaseAddress,CSL_spiParam,
 *                 CSL_spiContext,  CSL_spiConfig structures.
 *                 - Updated comments for H/W control cmd and status query enums.
 *                 - Added prototypes for CSL_spiGetBaseAdddress and
 *                   CSL_SpiHwSetupRaw.
 *                 - Changed prototypes of CSL_spiInit, CSL_spiOpen.
 *                 - Updated respective comments along with that of CSL_spiClose.
 *
 * =============================================================================
 */

#ifndef _CSL_SPI_H_
#define _CSL_SPI_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <cslr.h>
#include <csl_error.h>
#include <csl_types.h>
#include <soc.h>
#include <cslr_spi.h>

/**************************************************************************\
* SPI global macro declarations
\**************************************************************************/


/**************************************************************************\
* SPI global typedef declarations
\**************************************************************************/

/** @brief Enumeration for control commands passed to @a CSL_spiHwControl()
 *
 * This is the set of commands that are passed to the @a CSL_spiHwControl()
 * with an optional argument type-casted to @a void* . The arguments to be
 * passed with each enumeration if any are specified next to the enumeration */
typedef enum {
    /**
     * @brief   reset the SPI
     * @param   (None)
     */
    CSL_SPI_CMD_PRI_RESET       =  1,

    /**
     * @brief   power up the SPI
     * @param   (None)
     */
    CSL_SPI_CMD_POWER_UP        =  2,

    /**
     * @brief   power down the SPI
     * @param   (None)
     */
    CSL_SPI_CMD_POWER_DOWN      =  3,

    /**
     * @brief   enable DMA transaction capability for DMA in compatibility mode
     * @param   (None)
     */
    CSL_SPI_CMD_CPT_DMA_ENABLE  =  4,

    /**
     * @brief   enable DMA transaction capability for DMA in compatibility mode
     * @param   (None)
     */
    CSL_SPI_CMD_CPT_DMA_DISABLE =  5,

    /**
     * @brief   write data in argument to SPIDAT0 register for transmitting out
     * @param   Uint16*
     */
    CSL_SPI_CMD_CPT_WRITE0      =  6,

    /**
     * @brief   write data in argument to SPIDAT1 register for transmitting out
     * @param   Uint16*
     */
    CSL_SPI_CMD_CPT_WRITE1      =  7,

    /**
     * @brief   read the data in SPIBUF register to the argument
     * @param   CSL_SpiCptData*
     */
    CSL_SPI_CMD_CPT_READ        =  8,

    /**
     * @brief   enable the interrupts in the bit-vector argument
     * @param   Uint16*
     */
    CSL_SPI_CMD_INT_ENABLE      =  9,

    /**
     * @brief   disable the interrupts in the bit-vector argument
     * @param   Uint16*
     */
    CSL_SPI_CMD_INT_DISABLE     =  10,

    /**
     * @brief   set value passed in argument over pins configured as GPIO
     * @param   Uint16*
     */
    CSL_SPI_CMD_PINS_VALUE      =  11,

    /**
     * @brief   set pins passed in bit-vector argument if configured as GPIO
     * @param   Uint16*
     */
    CSL_SPI_CMD_PINS_SET        =  12,

    /**
     * @brief   clear pins passed in bit-vector argument if configured as GPIO
     * @param   Uint16*
     */
    CSL_SPI_CMD_PINS_CLEAR      =  13,

    /**
     * @brief   enable the data-transfer section of the SPI
     * @param   (None)
     */
    CSL_SPI_CMD_XFER_ENABLE     =  14,
    /**
     * @brief   disable the data-transfer section of the SPI
     * @param   (None)
     */
    CSL_SPI_CMD_XFER_DISABLE    =  15
} CSL_SpiHwControlCmd;


/** @brief Enumeration for queries passed to @a CSL_spiGetHwStatus()
 *
 * This is used to get the status of different operations or to get the
 * existing setup of SPI. The arguments to be passed with each enumeration
 * if any are specified next to the enumeration */
typedef enum {
    /**
     * @brief   get the power status of the SPI
     * @param   CSL_SpiPwrStat*
     */
    CSL_SPI_QUERY_POWER_STATUS      =  1,

    /**
     * @brief   get the value present on the pins as a bit-vector
     * @param   Uint16*
     */
    CSL_SPI_QUERY_PINS_VALUE        =  2,

    /**
     * @brief   get value of highest priority int that has occured on INT0 line
     * @param   CSL_SpiMbfInt*
     */
    CSL_SPI_QUERY_INT_VECTOR0       =  3,

    /**
     * @brief   get value of highest priority int that has occured on INT1 line
     * @param   CSL_SpiMbfInt*
     */
    CSL_SPI_QUERY_INT_VECTOR1       =  4,

    /**
     * @brief   get the bit-vector of interrupts that have been enabled
     * @param   Uint16*
     */
    CSL_SPI_QUERY_INT_ENABLED       =  5,

    /**
     * @brief   get the status of whether DMA is enabled in compatibility mode
     * @param   CSL_SpiCptDma*
     */
    CSL_SPI_QUERY_CPT_DMA_ENABLED   =  6
} CSL_SpiHwStatusQuery;

/** @brief enumeration for Spi general interrupts */
typedef enum {
    /** interrupt on successful receive */
    CSL_SPI_INT_RX       =  CSL_FMKT(SPI_SPIINT0_RXINTEN, ENABLE),
    /** interrupt on receiver overrun */
    CSL_SPI_INT_OVRN     =  CSL_FMKT(SPI_SPIINT0_OVRNINTEN, ENABLE),
    /** interrupt on bit error */
    CSL_SPI_INT_BITERR   =  CSL_FMKT(SPI_SPIINT0_BITERRENA, ENABLE),
    /** interrupt on loss of synchronization between master & slave */
    CSL_SPI_INT_DESYNC   =  CSL_FMKT(SPI_SPIINT0_DESYNCENA, ENABLE),
    /** interrupt on parity error */
    CSL_SPI_INT_PARERR   =  CSL_FMKT(SPI_SPIINT0_PARERRENA, ENABLE),
    /** interrupt on timeout error */
    CSL_SPI_INT_TIMEOUT  =  CSL_FMKT(SPI_SPIINT0_TIMEOUTENA, ENABLE)
} CSL_SpiInt;


/** @brief enumeration for Spi status bits */
typedef enum {
    /** indicates that a word has been received in SPIBUF */
    CSL_SPI_BUFSTATUS_RXINT   =  (1 << 7),
    /** indicates that receive BUF is empty */
    CSL_SPI_BUFSTATUS_RXEPTY  =  (1 << 6),
    /** indicates that overrun occured/not */
    CSL_SPI_BUFSTATUS_RXOVRN  =  (1 << 5),
    /** indicates that transmit BUF is full */
    CSL_SPI_BUFSTATUS_TXFULL  =  (1 << 4),
    /** indicates that a bit error occurred during transaction */
    CSL_SPI_BUFSTATUS_BITERR  =  (1 << 3),
    /** indicates that desynchronization with slave detected */
    CSL_SPI_BUFSTATUS_DESYNC  =  (1 << 2),
    /** indicates that parity error is detected */
    CSL_SPI_BUFSTATUS_PARITY  =  (1 << 1),
    /** indicates timeout */
    CSL_SPI_BUFSTATUS_TMOUT   =  (1 << 0)
} CSL_SpiBufStatus;


/** @brief enumeration to hold the chip select active between 2 transfers */
typedef enum {
    /** hold chip select active between consecutive transfers */
    CSL_SPI_CSHOLD_YES  =  CSL_SPI_SPIDAT1_CSHOLD_YES,
    /** chip select to be inactivated after the each transfer */
    CSL_SPI_CSHOLD_NO   =  CSL_SPI_SPIDAT1_CSHOLD_NO
} CSL_SpiCsHold;


/** @brief enumeration to control applying the format delay to consecutive
 * transfers */
typedef enum {
    /** enable format delay between 2 consecutive transfers */
    CSL_SPI_WDELAYEN_YES  =  CSL_SPI_SPIDAT1_WDEL_DELAY,
    /** disable format delay between 2 consecutive transfers */
    CSL_SPI_WDELAYEN_NO   =  CSL_SPI_SPIDAT1_WDEL_NODELAY
} CSL_SpiWDelayEn;


/** @brief enumeration to select the required data transfer format */
typedef enum {
    /** select format 0 */
    CSL_SPI_FMTSEL_0  =  CSL_SPI_SPIDAT1_DFSEL_FMT0,
    /** select format 1 */
    CSL_SPI_FMTSEL_1  =  CSL_SPI_SPIDAT1_DFSEL_FMT1,
    /** select format 2 */
    CSL_SPI_FMTSEL_2  =  CSL_SPI_SPIDAT1_DFSEL_FMT2,
    /** select format 3 */
    CSL_SPI_FMTSEL_3  =  CSL_SPI_SPIDAT1_DFSEL_FMT3
} CSL_SpiFmtSel;


/** @brief enumeration to control the dependence of transfer in ENA signal in
 * master mode */
typedef enum {
    /** if in master mode; wait for ENA signal from slave */
    CSL_SPI_WAITEN_YES  =  CSL_SPI_SPIFMT_WAITEN_YES,
    /** do not wait for ENA signal from slave */
    CSL_SPI_WAITEN_NO   =  CSL_SPI_SPIFMT_WAITEN_NO
} CSL_SpiWaitEn;


/** @brief enumeration to control the parity setting in the data format */
typedef enum {
    /** enable even parity */
    CSL_SPI_PARITY_EVEN     =  (CSL_SPI_SPIFMT_PARITYENA_ENABLE |
                               (CSL_SPI_SPIFMT_PARPOL_EVEN << 1)),
    /** enable odd parity */
    CSL_SPI_PARITY_ODD      =  (CSL_SPI_SPIFMT_PARITYENA_ENABLE |
                               (CSL_SPI_SPIFMT_PARPOL_ODD << 1)),
    /** disable parity */
    CSL_SPI_PARITY_DISABLE  =  CSL_SPI_SPIFMT_PARITYENA_DISABLE
} CSL_SpiParity;


/** @brief enumeration to control the polarity of serial clock */
typedef enum {
    /** clock is low when inactive */
    CSL_SPI_POLARITY_INACTIVELO = CSL_SPI_SPIFMT_POLARITY_INACTIVELO,
    /** clock is high when inactive */
    CSL_SPI_POLARITY_INACTIVEHI = CSL_SPI_SPIFMT_POLARITY_INACTIVEHI
} CSL_SpiClkPolarity;


/** @brief enumeration to control phase relationship between data & clock */
typedef enum {
    /** data & clock in phase */
    CSL_SPI_PHASE_IN   =  CSL_SPI_SPIFMT_PHASE_IN,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩你懂的电影在线观看| 久久精品亚洲精品国产欧美| 精品国产精品一区二区夜夜嗨| 中文字幕欧美日本乱码一线二线| 日本欧洲一区二区| 91蝌蚪porny成人天涯| 国产欧美一区二区精品秋霞影院| 丝袜美腿高跟呻吟高潮一区| jizzjizzjizz欧美| 久久综合国产精品| 麻豆视频一区二区| 91精品午夜视频| 亚洲中国最大av网站| 97精品电影院| 国产精品高潮呻吟久久| 成人午夜电影小说| 久久免费国产精品| 麻豆成人av在线| 51精品秘密在线观看| 亚洲电影一区二区三区| 欧美午夜精品理论片a级按摩| 亚洲欧洲国产日韩| 成人毛片视频在线观看| 欧美xxxx老人做受| 麻豆一区二区三| 日韩精品专区在线影院重磅| 日本网站在线观看一区二区三区 | 国产精品羞羞答答xxdd| 欧美一级理论性理论a| 日日噜噜夜夜狠狠视频欧美人| 欧美中文字幕久久| 亚洲精品欧美二区三区中文字幕| bt7086福利一区国产| 日韩一区欧美一区| 91黄色激情网站| 亚洲一区二区三区影院| 欧美亚洲综合一区| 视频一区二区三区中文字幕| 91精品国产欧美一区二区成人| 日韩电影在线免费看| 精品欧美一区二区久久| 国产伦精一区二区三区| 国产精品网曝门| av电影在线观看完整版一区二区| 日韩一区中文字幕| 欧美日韩国产精品自在自线| 久久爱另类一区二区小说| 欧美激情一区三区| 欧美怡红院视频| 久久精品国产精品青草| 国产精品色婷婷| 欧美在线观看一区| 久久国产福利国产秒拍| 国产精品萝li| 91精品国产一区二区三区| 国产精品亚洲成人| 一区二区不卡在线播放| 日韩一区二区三区精品视频| 丁香网亚洲国际| 亚洲成av人影院| 久久精品视频在线看| 一本一本大道香蕉久在线精品 | 欧美一区二区三区在线电影| 精品写真视频在线观看| 国产精品人妖ts系列视频| 欧美综合一区二区三区| 黑人精品欧美一区二区蜜桃| 亚洲欧洲成人自拍| 精品成人免费观看| 91传媒视频在线播放| 国产一区二区伦理| 亚洲一区二区三区三| 国产午夜亚洲精品羞羞网站| 欧美日韩精品欧美日韩精品 | 国产精品久久毛片av大全日韩| 欧美探花视频资源| 成人国产精品免费观看动漫| 青青青伊人色综合久久| 亚洲精品写真福利| 国产日韩v精品一区二区| 欧美精品丝袜久久久中文字幕| 国产成人免费视频一区| 奇米777欧美一区二区| 亚洲三级免费观看| 国产女人18毛片水真多成人如厕| 欧美日本乱大交xxxxx| 99久久国产综合精品色伊 | 久久新电视剧免费观看| 欧美日韩美女一区二区| 91在线无精精品入口| 国产白丝网站精品污在线入口 | 亚洲曰韩产成在线| 国产精品网站一区| 国产日韩三级在线| 精品日韩一区二区| 日韩视频一区二区在线观看| 欧美亚洲国产怡红院影院| 94色蜜桃网一区二区三区| 国产精品123区| 国产一区二区三区不卡在线观看 | 97精品国产97久久久久久久久久久久| 精久久久久久久久久久| 毛片av中文字幕一区二区| 日韩精品免费专区| 日本成人在线不卡视频| 日本不卡视频在线| 人妖欧美一区二区| 美女视频网站黄色亚洲| 麻豆91精品91久久久的内涵| 日韩高清电影一区| 男人操女人的视频在线观看欧美| 亚洲第一会所有码转帖| 午夜精品一区二区三区三上悠亚| 亚洲一区二区精品视频| 亚洲一区二区黄色| 日本在线不卡一区| 蜜臀91精品一区二区三区| 蜜臀av一区二区在线免费观看 | 亚洲一区二区三区四区在线免费观看| 亚洲激情图片小说视频| 亚洲综合一区二区| 日本不卡1234视频| 韩国精品免费视频| 国产盗摄视频一区二区三区| 国产精品99久久久| 91视频91自| 欧美日韩一区 二区 三区 久久精品| 在线亚洲免费视频| 欧美久久久影院| 精品少妇一区二区| 中文字幕乱码日本亚洲一区二区| 亚洲欧美怡红院| 午夜欧美视频在线观看| 狠狠色狠狠色综合| 不卡av在线免费观看| 欧美视频在线一区| 日韩欧美在线网站| 国产欧美一区二区三区沐欲| 一二三区精品福利视频| 日本aⅴ精品一区二区三区 | 麻豆精品久久久| 成人一级片网址| 欧美三级视频在线播放| 精品理论电影在线观看 | 久久综合成人精品亚洲另类欧美 | 欧美精品一区二区三区视频| 国产精品亲子伦对白| 亚洲综合在线观看视频| 久久99日本精品| 99re66热这里只有精品3直播| 欧美精品电影在线播放| 国产视频亚洲色图| 天天色图综合网| bt欧美亚洲午夜电影天堂| 91精品黄色片免费大全| 国产精品天美传媒| 日韩不卡一二三区| 99精品欧美一区| 久久亚洲综合色一区二区三区| 亚洲丝袜另类动漫二区| 极品尤物av久久免费看| 欧洲精品在线观看| 国产拍欧美日韩视频二区| 三级在线观看一区二区| 91小视频免费看| 久久久精品国产99久久精品芒果| 亚洲成人777| 北条麻妃国产九九精品视频| 欧美变态tickle挠乳网站| 亚洲国产成人高清精品| av一区二区三区黑人| 久久九九国产精品| 狂野欧美性猛交blacked| 色哟哟国产精品| 中文字幕亚洲电影| 国产91在线|亚洲| 欧美一卡二卡在线观看| 亚洲电影一区二区| 一本大道综合伊人精品热热 | 日韩中文字幕一区二区三区| 99re热这里只有精品视频| 久久久久久久久蜜桃| 毛片一区二区三区| 欧美一区二区三级| 无码av免费一区二区三区试看| 色婷婷精品久久二区二区蜜臂av | 国产精品全国免费观看高清| 国产精品一区二区久久精品爱涩| 欧美电影一区二区| 日韩高清在线观看| 欧美一区二区视频观看视频| 丝袜美腿亚洲一区二区图片| 精品视频在线免费| 香蕉加勒比综合久久| 欧美丝袜丝交足nylons图片| 亚洲成人免费看| 欧美一区二区三区爱爱| 蜜桃av一区二区三区电影| 日韩视频一区二区在线观看| 美女网站在线免费欧美精品|