亚洲欧美第一页_禁久久精品乱码_粉嫩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在线播放网址| 成人国产亚洲欧美成人综合网| 亚洲欧美影音先锋| 欧美成人一区二区三区| 日韩一区和二区| 91精品国产综合久久久久久漫画| 欧美日韩一区二区在线观看视频| 欧美在线观看视频一区二区| 日本韩国精品在线| 在线一区二区三区四区| 97超碰欧美中文字幕| 91视频www| 在线播放91灌醉迷j高跟美女| 91黄色免费版| 欧美一区二区三区视频在线| 欧美成人猛片aaaaaaa| 2020国产精品| 国产精品少妇自拍| 亚洲综合在线电影| 亚洲第一精品在线| 久久99国产精品久久99| 久久99国产精品久久99| 国产一区二区在线影院| a级精品国产片在线观看| 色爱区综合激月婷婷| 欧洲一区二区三区免费视频| 欧美一区二区三区思思人| 欧美精品一区二区三区很污很色的| 久久婷婷国产综合精品青草| 2020日本不卡一区二区视频| 国产欧美视频在线观看| 国产日本一区二区| 亚洲国产日韩综合久久精品| 爽爽淫人综合网网站| 美腿丝袜亚洲色图| 成人av电影在线网| 欧美人与禽zozo性伦| 精品播放一区二区| 欧美韩国日本一区| 亚洲午夜电影在线观看| 久久99在线观看| eeuss鲁片一区二区三区| 欧美日韩一区二区电影| 国产午夜精品理论片a级大结局 | 香蕉成人啪国产精品视频综合网| 午夜欧美电影在线观看| 大尺度一区二区| 日韩欧美国产系列| 一区二区欧美精品| 激情伊人五月天久久综合| 91在线视频播放地址| 2020国产精品自拍| 日韩综合一区二区| 97久久超碰精品国产| 欧美精品一区二区三区很污很色的| 亚洲女同一区二区| 成人小视频在线观看| 日韩欧美一二三| 一片黄亚洲嫩模| 成人激情免费视频| 久久亚洲综合色| 久久狠狠亚洲综合| 91精品国产综合久久久蜜臀图片| 亚洲欧美另类综合偷拍| 国产v日产∨综合v精品视频| 日韩视频一区二区三区在线播放| 一区二区三区蜜桃| 粉嫩一区二区三区性色av| 欧美一区二区三区视频免费播放| 亚洲国产日韩在线一区模特| 99re66热这里只有精品3直播| 久久久久久久久久久久久久久99| 免费在线视频一区| 欧美大肚乱孕交hd孕妇| 日韩电影在线看| 欧美日韩成人高清| 日韩高清欧美激情| 欧美一级欧美一级在线播放| 性久久久久久久久| 555www色欧美视频| 午夜精品一区二区三区免费视频| 在线观看一区二区视频| 亚洲影视资源网| 色婷婷综合久久久中文一区二区 | 欧美一级一区二区| 日韩专区欧美专区| 欧美一级二级在线观看| 九九九久久久精品| 久久婷婷成人综合色| 粉嫩高潮美女一区二区三区| 国产亚洲精品福利| 国产不卡视频在线播放| 亚洲欧洲精品一区二区精品久久久 | 中文字幕一区二区三区在线不卡 | 亚洲自拍偷拍麻豆| 宅男在线国产精品| 国产麻豆成人传媒免费观看| 国产精品久久看| 在线一区二区三区| 激情综合网最新| 国产精品传媒入口麻豆| 欧美在线不卡视频| 国产综合色产在线精品| 国产精品久久久久久一区二区三区| 欧洲精品一区二区| 极品少妇一区二区| 亚洲欧美偷拍卡通变态| 欧美一二区视频| 91亚洲精品久久久蜜桃网站 | 从欧美一区二区三区| 中文字幕制服丝袜一区二区三区| 91小宝寻花一区二区三区| 一区二区免费视频| 欧美精品一区二区三区蜜桃| 不卡视频在线看| 亚洲一区二区在线视频| 日韩一卡二卡三卡国产欧美| 不卡视频一二三四| 亚洲一级二级三级| 欧美videos中文字幕| 色婷婷久久一区二区三区麻豆| 亚洲黄色免费电影| 精品国精品自拍自在线| 成人网在线播放| 麻豆精品一区二区综合av| 国产精品日产欧美久久久久| 在线亚洲人成电影网站色www| 精品无码三级在线观看视频| 国产精品―色哟哟| 欧美久久久久久久久中文字幕| 国产凹凸在线观看一区二区| 亚洲一区二区中文在线| 久久亚洲二区三区| 成人免费高清视频在线观看| 日本大胆欧美人术艺术动态| 国产精品久久久久久久久晋中 | 亚洲欧美日韩国产综合在线| 99re免费视频精品全部| 亚洲sss视频在线视频| 国产日韩欧美高清| 久久亚洲精品国产精品紫薇| 成人a免费在线看| 极品美女销魂一区二区三区| 青草av.久久免费一区| 亚洲欧美激情小说另类| 欧美sm极限捆绑bd| 2024国产精品| 91精品国产综合久久香蕉麻豆| 精品一区二区三区久久| 精品一区二区免费视频| 亚洲五月六月丁香激情| 国产精品婷婷午夜在线观看| 久久久精品免费网站| 日韩免费观看2025年上映的电影| 国产乱码一区二区三区| 精品在线观看视频| 婷婷中文字幕一区三区| 中文字幕在线不卡一区| 国产精品污网站| 欧美高清在线精品一区| 欧美一卡二卡在线| 91精品黄色片免费大全| 欧美日韩精品专区| 国产精品一区二区视频| 国产麻豆精品久久一二三| 亚洲午夜三级在线| 国产精品蜜臀av| 亚洲日本va午夜在线电影| 国产精品你懂的在线欣赏| 欧美亚洲综合色| 欧美肥妇bbw| 制服.丝袜.亚洲.另类.中文| 国产剧情一区二区| 色婷婷亚洲精品| 欧美专区在线观看一区| 欧美三片在线视频观看| 欧美军同video69gay| 555www色欧美视频| 欧美tickling挠脚心丨vk| 久久久青草青青国产亚洲免观| 国产日韩一级二级三级| 亚洲日本电影在线| 亚洲福中文字幕伊人影院| 亚洲一区欧美一区| 国内外成人在线| 粉嫩av一区二区三区| 国产真实乱偷精品视频免| 色综合天天狠狠| 欧美午夜精品一区| 91精品国产91久久久久久一区二区| 欧美一区二区黄| 精品美女一区二区| 亚洲国产精品精华液2区45| 中文字幕一区日韩精品欧美| 国产精品久久久久久久久免费相片 | 不卡电影一区二区三区| 99久久精品免费看| 欧美午夜一区二区| 欧美激情一区二区三区不卡 | 国产美女精品人人做人人爽|