資源簡介
附件是RTEX的總線的驅動程序,歡迎大家下載測試。。同時還包含連個參考PDF文件

代碼片段和文件信息
/****************************************************************************??
*??
*???Example?Code?for?MNM1221??
*??
*???Copyright?(c)?2004?Panasonic??
*???Motor?Company?Matsushita?Electric?Industrial?Co.?Ltd.??
*??
*----------------------------------------------------------------------------??
*??
*???File?Name:??????mnm1221_m.c??
*???Description:????Example?code?to?access?MNM1221?as?MASTER?mode??
*???Notes:??
*???-?This?code?is?just?for?reference?so?that?Panasonic?does?NOT?assume???
*?????responsibility?or?liability?for?actual?use?based?upon?this?code.??
*???-?This?file?is?NOT?for?warranty?of?correct?behavior???
*?????and?might?include?bugs?so?that?you?have?to?be?careful.??
*???-?The?codes?are?very?basic?only?therefore?you?will?need?additional?code???
*?????such?as?the?process?at?the?occurrence?of?errors.??
*???-?It?is?assumed?that?TAB?of?your?PC?is?set?to?4space?width.??
*??
*----------------------------------------------------------------------------??
*???Revision:???Date(y/m/d):????Author:?????????Comments:??
*???0.0?????????2004/02/16??????Y.?Fujisaki?????Initial?release??
*???0.1?????????2004/03/01??????Y.?Fujisaki?????Cleanup??
*???0.2?????????2004/05/20??????Y.?Fujisaki?????Minor?edits??
*??
*****************************************************************************/???
???
#include????“mnm1221_m.h“???/*?Modify?path?according?to?your?file?structure?*/???
???
???
/****************************************************************************/???
/*?Definitions?and?Declarations?????????????????????????????????????????????*/???
/****************************************************************************/???
/*??
*?Some?of?the?followings?accessed?in?also?other?files?should?be?moved?to??
*?the?header?file?you?provide?separately.??
*/???
???
/*--------------------------------------------------------------------------*/???
/*?Definition?of?constants??????????????????????????????????????????????????*/???
/*--------------------------------------------------------------------------*/???
#define?MAX_NS??????????????MAX_N_SLAVE_NODE???
???
#ifdef?MASTER_16BIT_ACCESS??/*?16bits?bus?width?*/???
????#define?N_DATA??????????WORD_SIZE_OF_BLOCK???
#else???????????????????????/*?32bits?bus?width?*/???
????#define?N_DATA??????????DWORD_SIZE_OF_BLOCK???
#endif???
???
#define?RT_frame_FORM???????3???????????/*?Do?not?change?this?value.?*/???
#define?N_WDT_RATE??????????5???????????/*?setting?for?timeout?rate?*/???
/*??
*?Consider?the?value?about?timeout?according?to?your?system.??
*?For?safety?large?value?is?not?recomended.??
*/???
???
/*?phase?to?control?MNM1221?-->?see?ctrl_mnm1221_m()?*/???
enum?{???
????PH_RESET?=?-1???
????PH_INIT?=?0???
????PH_WAITING???
????PH_PREPARE???
????PH_START???
????PH_RUNNING???
};???
???
/*--------------------------------------------------------------------------*/???
/*?Definition?of?bit?field??????????????????????????????????????????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????I.A....????377898??2019-02-18?11:24??RTEX\firmware_develop_guide_r1e.pdf
????I.A....????293661??2019-02-18?11:24??RTEX\MNM1221_example_code_r01e.pdf
?????文件??????34071??2019-02-18?11:25??RTEX\mnm1221_m.c
?????文件??????15038??2019-02-18?11:27??RTEX\mnm1221_m.h
?????目錄??????????0??2019-02-18?11:27??RTEX
-----------?---------??----------?-----??----
???????????????720668????????????????????5
- 上一篇:單片機最小系統—蜂鳴器和proteus仿真
- 下一篇:傳智播客云計算高手班第三期
評論
共有 條評論