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

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

?? dsp280x_eqep.h

?? 比較完整詳細的TMS320F2801X系列源碼例子
?? H
字號:
// TI File $Revision: /main/3 $
// Checkin $Date: April 8, 2005   12:39:38 $
//###########################################################################
//
// FILE:   DSP280x_EQep.h
//
// TITLE:  DSP280x Enhanced Quadrature Encoder Pulse Module 
//         Register Bit Definitions.
//
//###########################################################################
// $TI Release: DSP280x, DSP2801x Header Files V1.41 $
// $Release Date: August 7th, 2006 $
//###########################################################################

#ifndef DSP280x_EQEP_H
#define DSP280x_EQEP_H


#ifdef __cplusplus
extern "C" {
#endif

//----------------------------------------------------
// Capture decoder control register bit definitions */                                    
struct QDECCTL_BITS {         // bits   description
   Uint16 rsvd1:5;            // 4:0    reserved
   Uint16 QSP:1;              // 5      QEPS input polarity
   Uint16 QIP:1;              // 6      QEPI input polarity
   Uint16 QBP:1;              // 7      QEPB input polarity
   Uint16 QAP:1;              // 8      QEPA input polarity
   Uint16 IGATE:1;            // 9      Index pulse gating option
   Uint16 SWAP:1;             // 10     CLK/DIR signal source for Position Counter
   Uint16 XCR:1;              // 11     External clock rate
   Uint16 SPSEL:1;            // 12     Sync output pin select
   Uint16 SOEN:1;             // 13     Enable position compare sync
   Uint16 QSRC:2;             // 15:14  Position counter source
};

union QDECCTL_REG {
   Uint16              all;
   struct QDECCTL_BITS   bit;
};


//----------------------------------------------------
// QEP control register bit definitions */                                    
struct QEPCTL_BITS {           // bits   description
   Uint16 WDE:1;               // 0      QEP watchdog enable
   Uint16 UTE:1;               // 1      QEP unit timer enable
   Uint16 QCLM:1;              // 2      QEP capture latch mode
   Uint16 QPEN:1;              // 3      Quadrature position counter enable
   Uint16 IEL:2;               // 5:4    Index event latch
   Uint16 SEL:1;               // 6      Strobe event latch
   Uint16 SWI:1;               // 7      Software init position counter
   Uint16 IEI:2;               // 9:8    Index event init of position count
   Uint16 SEI:2;               // 11:10  Strobe event init
   Uint16 PCRM:2;              // 13:12  Position counter reset
   Uint16 FREE_SOFT:2;         // 15:14  Emulation mode
};

union QEPCTL_REG {
   Uint16               all;
   struct QEPCTL_BITS   bit;
};         


//----------------------------------------------------
// Quadrature capture control register bit definitions */                                    
struct QCAPCTL_BITS {          // bits   description
   Uint16 UPPS:4;              // 3:0    Unit position pre-scale         
   Uint16 CCPS:3;              // 6:4    QEP capture timer pre-scale
   Uint16 rsvd1:8;             // 14:7   reserved
   Uint16 CEN:1;               // 15     Enable QEP capture
};


union QCAPCTL_REG {
   Uint16               all;
   struct QCAPCTL_BITS  bit;
}; 



//----------------------------------------------------
// Position compare control register bit definitions */                                    
struct QPOSCTL_BITS {          // bits   description
   Uint16 PCSPW:12;            // 11:0   Position compare sync pulse width
   Uint16 PCE:1;               // 12     Position compare enable/disable
   Uint16 PCPOL:1;             // 13     Polarity of sync output
   Uint16 PCLOAD:1;            // 14     Position compare of shadow load
   Uint16 PCSHDW:1;            // 15     Position compare shadow enable
};

union QPOSCTL_REG {
   Uint16               all;
   struct QPOSCTL_BITS  bit;
};         

//----------------------------------------------------
// QEP interrupt control register bit definitions */                                    
struct QEINT_BITS {          // bits   description
   Uint16 rsvd1:1;           // 0      reserved
   Uint16 PCE:1;             // 1      Position counter error
   Uint16 QPE:1;             // 2      Quadrature phase error
   Uint16 QDC:1;             // 3      Quadrature dir change
   Uint16 WTO:1;             // 4      Watchdog timeout
   Uint16 PCU:1;             // 5      Position counter underflow
   Uint16 PCO:1;             // 6      Position counter overflow
   Uint16 PCR:1;             // 7      Position compare ready
   Uint16 PCM:1;             // 8      Position compare match
   Uint16 SEL:1;             // 9      Strobe event latch
   Uint16 IEL:1;             // 10     Event latch
   Uint16 UTO:1;             // 11     Unit timeout
   Uint16 rsvd2:4;           // 15:12  reserved
};


union QEINT_REG {
   Uint16               all;
   struct QEINT_BITS    bit;
};


//----------------------------------------------------
// QEP interrupt status register bit definitions */                                    
struct QFLG_BITS {          // bits   description
   Uint16 INT:1;            // 0      Global interrupt 
   Uint16 PCE:1;            // 1      Position counter error
   Uint16 PHE:1;            // 2      Quadrature phase error
   Uint16 QDC:1;            // 3      Quadrature dir change
   Uint16 WTO:1;            // 4      Watchdog timeout
   Uint16 PCU:1;            // 5      Position counter underflow
   Uint16 PCO:1;            // 6      Position counter overflow
   Uint16 PCR:1;            // 7      Position compare ready
   Uint16 PCM:1;            // 8      Position compare match
   Uint16 SEL:1;            // 9      Strobe event latch
   Uint16 IEL:1;            // 10     Event latch
   Uint16 UTO:1;            // 11     Unit timeout
   Uint16 rsvd2:4;          // 15:12  reserved
};


union QFLG_REG {
   Uint16               all;
   struct QFLG_BITS     bit;
};

//----------------------------------------------------
// QEP interrupt force register bit definitions */                                    
struct QFRC_BITS {          // bits   description
   Uint16 reserved:1;       // 0      Reserved
   Uint16 PCE:1;            // 1      Position counter error
   Uint16 PHE:1;            // 2      Quadrature phase error
   Uint16 QDC:1;            // 3      Quadrature dir change
   Uint16 WTO:1;            // 4      Watchdog timeout
   Uint16 PCU:1;            // 5      Position counter underflow
   Uint16 PCO:1;            // 6      Position counter overflow
   Uint16 PCR:1;            // 7      Position compare ready
   Uint16 PCM:1;            // 8      Position compare match
   Uint16 SEL:1;            // 9      Strobe event latch
   Uint16 IEL:1;            // 10     Event latch
   Uint16 UTO:1;            // 11     Unit timeout
   Uint16 rsvd2:4;          // 15:12  reserved
};


union QFRC_REG {
   Uint16               all;
   struct QFRC_BITS     bit;
};

// V1.1 Added UPEVNT (bit 7) This reflects changes 
// made as of F280x Rev A devices
//----------------------------------------------------
// QEP status register bit definitions */                                    
struct QEPSTS_BITS {          // bits   description
   Uint16 PCEF:1;             // 0      Position counter error
   Uint16 FIMF:1;             // 1      First index marker
   Uint16 CDEF:1;             // 2      Capture direction error
   Uint16 COEF:1;             // 3      Capture overflow error
   Uint16 QDLF:1;             // 4      QEP direction latch
   Uint16 QDF:1;              // 5      Quadrature direction
   Uint16 FIDF:1;             // 6      Direction on first index marker
   Uint16 UPEVNT:1;           // 7      Unit position event flag
   Uint16 rsvd1:8;            // 15:8   reserved
};

union QEPSTS_REG {
   Uint16               all;
   struct QEPSTS_BITS   bit;
};

//----------------------------------------------------

struct EQEP_REGS {
   Uint32              QPOSCNT;   // Position counter 
   Uint32              QPOSINIT;  // Position counter init
   Uint32              QPOSMAX;   // Maximum position count
   Uint32              QPOSCMP;   // Position compare
   Uint32              QPOSILAT;  // Index position latch
   Uint32              QPOSSLAT;  // Strobe position latch
   Uint32              QPOSLAT;   // Position latch
   Uint32              QUTMR;     // Unit timer
   Uint32              QUPRD;     // Unit period
   Uint16              QWDTMR;    // QEP watchdog timer
   Uint16              QWDPRD;    // QEP watchdog period
   union  QDECCTL_REG  QDECCTL;   // Quadrature decoder control
   union  QEPCTL_REG   QEPCTL;    // QEP control 
   union  QCAPCTL_REG  QCAPCTL;   // Quadrature capture control     
   union  QPOSCTL_REG  QPOSCTL;   // Position compare control
   union  QEINT_REG    QEINT;     // QEP interrupt control        
   union  QFLG_REG     QFLG;      // QEP interrupt flag
   union  QFLG_REG     QCLR;      // QEP interrupt clear                   
   union  QFRC_REG     QFRC;      // QEP interrupt force                   
   union  QEPSTS_REG   QEPSTS;    // QEP status
   Uint16              QCTMR;     // QEP capture timer
   Uint16              QCPRD;     // QEP capture period
   Uint16              QCTMRLAT;  // QEP capture latch
   Uint16              QCPRDLAT;  // QEP capture period latch
   Uint16              rsvd1[30]; // reserved
};

    
 

//---------------------------------------------------------------------------
// GPI/O External References & Function Declarations:
//
extern volatile struct EQEP_REGS EQep1Regs;
extern volatile struct EQEP_REGS EQep2Regs;



#ifdef __cplusplus
}
#endif /* extern "C" */

#endif  // end of DSP280x_EQEP_H definition

//===========================================================================
// End of file.
//===========================================================================

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品免费在线| 国产色婷婷亚洲99精品小说| 亚洲美女视频一区| 91一区二区三区在线播放| 1024国产精品| 91麻豆.com| 亚洲一区免费观看| 日韩欧美一区二区在线视频| 看电影不卡的网站| 欧美激情艳妇裸体舞| www.日韩在线| 亚洲综合视频在线| 日韩一区二区三区电影在线观看| 另类综合日韩欧美亚洲| 久久精品一区蜜桃臀影院| 成人天堂资源www在线| 樱桃视频在线观看一区| 日韩三级电影网址| 国产白丝精品91爽爽久久 | 国内精品久久久久影院一蜜桃| 日韩精品专区在线影院重磅| 国产不卡视频在线播放| 一区二区三区久久| 欧美大片国产精品| 成人毛片在线观看| 亚洲成av人片一区二区| 久久亚区不卡日本| 在线观看亚洲一区| 久久99久久精品| 一区二区在线观看视频| 欧美xxxxxxxxx| 日本精品免费观看高清观看| 美国毛片一区二区| 亚洲乱码国产乱码精品精98午夜| 欧美一区二区三级| 91麻豆蜜桃一区二区三区| 欧美a级一区二区| √…a在线天堂一区| 日韩视频在线你懂得| 91蜜桃视频在线| 久久国产视频网| 亚洲一区二区三区在线播放| 久久久久久免费| 在线播放/欧美激情| 97国产一区二区| 激情欧美一区二区三区在线观看| 亚洲男人的天堂av| 久久久综合网站| 91精选在线观看| 色欧美88888久久久久久影院| 国产九九视频一区二区三区| 午夜欧美电影在线观看| 亚洲三级电影全部在线观看高清| 精品国产亚洲在线| 欧美日韩一区 二区 三区 久久精品 | 一本色道综合亚洲| 国产在线精品视频| 日韩精品三区四区| 一区二区三区日本| 成人欧美一区二区三区视频网页| www亚洲一区| 欧美一级理论性理论a| 欧美日韩精品福利| 欧洲另类一二三四区| av色综合久久天堂av综合| 精品一区二区三区日韩| 日本不卡一区二区| 日韩精品高清不卡| 天天综合日日夜夜精品| 亚洲高清久久久| 一区二区在线免费观看| 亚洲人成在线播放网站岛国| 国产精品久久久爽爽爽麻豆色哟哟 | 欧美电影免费提供在线观看| 欧美精品乱码久久久久久按摩| 在线观看亚洲专区| 在线亚洲免费视频| 欧美在线不卡一区| 欧美影视一区在线| 欧美婷婷六月丁香综合色| 91久久精品一区二区| 在线视频亚洲一区| 在线观看日韩电影| 欧美日韩国产在线观看| 91精品久久久久久久91蜜桃| 日韩精品中文字幕在线一区| 精品国产一二三区| 欧美国产一区视频在线观看| 欧美激情综合五月色丁香小说| 日本一区二区三区dvd视频在线| 在线视频中文字幕一区二区| 欧美日韩亚洲综合一区| 欧美一区二区网站| 精品国产成人在线影院| 国产丝袜在线精品| 自拍视频在线观看一区二区| 一区二区三区欧美日| 午夜国产精品影院在线观看| 欧美aaaaaa午夜精品| 国产精品一级片| 成人av中文字幕| 欧美日韩精品免费观看视频| 欧美mv和日韩mv的网站| 中文字幕免费在线观看视频一区| 亚洲码国产岛国毛片在线| 午夜免费久久看| 精品无人区卡一卡二卡三乱码免费卡| 国产酒店精品激情| 色嗨嗨av一区二区三区| 日韩西西人体444www| 国产欧美视频一区二区三区| 一区二区三区在线免费播放| 蜜桃av噜噜一区二区三区小说| 成人永久aaa| 欧美精品久久99久久在免费线| 久久色在线观看| 亚洲一区二区三区四区不卡| 狠狠色综合播放一区二区| 99国产精品久久久久久久久久| 欧美视频你懂的| 国产欧美视频在线观看| 五月天久久比比资源色| 国产成人精品影院| 欧美麻豆精品久久久久久| 国产亚洲精品免费| 天涯成人国产亚洲精品一区av| 国产福利不卡视频| 欧美另类久久久品| 国产精品夫妻自拍| 麻豆91在线看| 欧美三级电影网| 国产精品美女久久久久久久| 日本欧美肥老太交大片| 色婷婷精品久久二区二区蜜臂av | 精品中文av资源站在线观看| 91浏览器入口在线观看| 欧美va在线播放| 亚洲成人一区二区| jvid福利写真一区二区三区| 精品免费国产一区二区三区四区| 亚洲精品一二三| 国产suv精品一区二区三区| 欧美一区在线视频| 亚洲精品午夜久久久| 国产传媒久久文化传媒| 日韩视频在线一区二区| 天堂av在线一区| 在线观看欧美黄色| 亚洲婷婷在线视频| 粉嫩一区二区三区性色av| 欧美本精品男人aⅴ天堂| 亚洲1区2区3区4区| 91黄色小视频| 亚洲免费在线看| 99久久精品免费| 国产精品麻豆视频| 国产成人午夜视频| 久久免费电影网| 国产精品一卡二卡| 精品国产乱码久久久久久蜜臀| 日本 国产 欧美色综合| 欧美日韩国产一二三| 午夜精品久久久久久久蜜桃app| 色婷婷亚洲婷婷| 亚洲一级二级三级| 精品视频一区二区三区免费| 亚洲国产视频一区二区| 91国偷自产一区二区开放时间| 亚洲视频网在线直播| 色综合av在线| 亚洲一区在线看| 在线不卡一区二区| 日本欧美一区二区在线观看| 日韩午夜在线播放| 国产一区二区精品在线观看| 久久久亚洲国产美女国产盗摄| 国产激情视频一区二区在线观看 | 香蕉加勒比综合久久| 欧美日韩黄色影视| 日韩av一级片| 日韩女优电影在线观看| 国产一区欧美一区| 中文字幕乱码亚洲精品一区| 91免费国产在线| 无码av中文一区二区三区桃花岛| 日韩一二三区视频| 国产高清成人在线| 亚洲色图清纯唯美| 欧美浪妇xxxx高跟鞋交| 麻豆91在线观看| 中文字幕的久久| 在线观看日韩毛片| 理论片日本一区| 国产精品欧美久久久久一区二区| 99riav久久精品riav| 午夜欧美视频在线观看| 久久综合九色欧美综合狠狠| 99久精品国产| 日本美女一区二区三区| 国产精品丝袜91|