• 大小: 0.55M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-04-13
  • 语言: C#
  • 标签: canopen  STM32  discovery8j1  

资源简介

canopen移植,在STM32F103RBT6上移植成功

资源截图

代码片段和文件信息


/* File generated by gen_cfile.py. Should not be modified. */

#include “EwtCanAnalysis_objdict.h“

/**************************************************************************/
/* Declaration of mapped variables                                        */
/**************************************************************************/
UNS8 temperature = 0x59; /* Mapped at index 0x2000 subindex 0x00 */
UNS8 sn[] = /* Mapped at index 0x2001 subindex 0x01 - 0x05 */
  {
    0xAA /* 170 */
    0xCC /* 204 */
    0x22 /* 34 */
    0x33 /* 51 */
    0xDD /* 221 */
  };
UNS8 button_Undefined1 = 0x11; /* Mapped at index 0x2002 subindex 0x01 */
UNS16 button_Undefined22 = 0x22; /* Mapped at index 0x2002 subindex 0x02 */
UNS8 button_Undefined333 = 0x33; /* Mapped at index 0x2002 subindex 0x03 */
UNS8 button_Undefined4 = 0x44; /* Mapped at index 0x2002 subindex 0x04 */
UNS32 button_Undefined5 = 0x12560045; /* Mapped at index 0x2002 subindex 0x05 */
UNS8 button_Undefined6 = 0x46; /* Mapped at index 0x2002 subindex 0x06 */
UNS8 button_Undefined77 = 0x47; /* Mapped at index 0x2002 subindex 0x07 */

/**************************************************************************/
/* Declaration of value range types                                       */
/**************************************************************************/

#define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */
UNS32 EwtCanAnalysis_valueRangeTest (UNS8 typeValue void * value)
{
  switch (typeValue) {
    case valueRange_EMC:
      if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED;
      break;
  }
  return 0;
}

/**************************************************************************/
/* The node id                                                            */
/**************************************************************************/
/* node_id default value.*/
UNS8 EwtCanAnalysis_bDeviceNodeId = 0x00;

/**************************************************************************/
/* Array of message processing information */

const UNS8 EwtCanAnalysis_iam_a_slave = 1;

TIMER_HANDLE EwtCanAnalysis_heartBeatTimers[1];

/*
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

                               object DICTIONARY

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
*/

/* index 0x1000 :   Device Type. */
                    UNS32 EwtCanAnalysis_obj1000 = 0x0; /* 0 */
                    subindex EwtCanAnalysis_Index1000[] = 
                     {
                       { RO uint32 sizeof (UNS32) (void*)&EwtCanAnalysis_obj1000 }
                     };

/* index 0x1001 :   Error Register. */
                    UNS8 EwtCanAnalysis_obj1001 = 0x0; /* 0 */
                    subindex EwtCanAnalysis_Index1001[] = 
                     {
                       { RO uint8 sizeof (UNS8) (

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      19324  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\EwtCanAnalysis.od

     文件      42516  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\EwtCanAnalysis_objdict.c

     文件       1191  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\EwtCanAnalysis_objdict.h

     文件       2289  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\applicfg.h

     文件       1400  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\can.h

     文件       1248  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\canfestival.h

     文件       3917  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\can_driver.h

     文件       1892  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\config.h

     文件      10979  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\data.h

     文件       1749  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\dcf.h

     文件       6162  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\def.h

     文件       3125  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\emcy.h

     文件       4964  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\lifegrd.h

     文件       9501  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\lss.h

     文件       3201  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\nmtMaster.h

     文件       1781  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\nmtSlave.h

     文件      12842  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\objacces.h

     文件       4199  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\objdictdef.h

     文件       5201  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\pdo.h

     文件      19688  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\sdo.h

     文件       3995  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\states.h

     文件       2250  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\sync.h

     文件        567  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\sysdep.h

     文件       3573  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\timer.h

     文件       2058  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Include\timers_driver.h

     文件     510760  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Src\canopen_mcu.lib

     文件       9127  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Src\dcf.c

     文件       7454  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Src\emcy.c

     文件      10756  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Src\lifegrd.c

     文件      37931  2017-11-03 17:59  stm32f103zet6_canopen\CANOPEN\Src\lss.c

............此处省略135个文件信息

评论

共有 条评论