NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
def.h File Reference
#include "config.h"

Go to the source code of this file.

Macros

#define OD_SUCCESSFUL   0x00000000
 
#define OD_READ_NOT_ALLOWED   0x06010001
 
#define OD_WRITE_NOT_ALLOWED   0x06010002
 
#define OD_NO_SUCH_OBJECT   0x06020000
 
#define OD_NOT_MAPPABLE   0x06040041
 
#define OD_LENGTH_DATA_INVALID   0x06070010
 
#define OD_NO_SUCH_SUBINDEX   0x06090011
 
#define OD_VALUE_RANGE_EXCEEDED   0x06090030 /* Value range test result */
 
#define OD_VALUE_TOO_LOW   0x06090031 /* Value range test result */
 
#define OD_VALUE_TOO_HIGH   0x06090032 /* Value range test result */
 
#define SDOABT_TOGGLE_NOT_ALTERNED   0x05030000
 
#define SDOABT_TIMED_OUT   0x05040000
 
#define SDOABT_OUT_OF_MEMORY   0x05040005 /* Size data exceed SDO_MAX_LENGTH_TRANSFERT */
 
#define SDOABT_GENERAL_ERROR   0x08000000 /* Error size of SDO message */
 
#define SDOABT_LOCAL_CTRL_ERROR   0x08000021
 
#define SDOABT_APP_TIMEOUT   0x08000040
 
#define REQUEST   1
 
#define NOT_A_REQUEST   0
 
#define Rx   0
 
#define Tx   1
 
#define TRUE   1
 
#define FALSE   0
 
#define ERR_NOERROR   0
 
#define SDO_RESET   0x0 /* Transmission not started. Init state. */
 
#define SDO_FINISHED   0x1 /* data are available */
 
#define SDO_ABORTED_RCV   0x80 /* Received an abort message. Data not available */
 
#define SDO_ABORTED_INTERNAL   0x85 /* Aborted but not because of an abort message (Timeout) */
 
#define SDO_DOWNLOAD_IN_PROGRESS   0x2
 
#define SDO_UPLOAD_IN_PROGRESS   0x3
 
#define SDO_SERVER   0x1
 
#define SDO_CLIENT   0x2
 
#define SDO_UNKNOWN   0x3
 
#define DOWNLOAD_SEGMENT_REQUEST   0
 
#define INITIATE_DOWNLOAD_REQUEST   1
 
#define INITIATE_UPLOAD_REQUEST   2
 
#define UPLOAD_SEGMENT_REQUEST   3
 
#define ABORT_TRANSFER_REQUEST   4
 
#define UPLOAD_SEGMENT_RESPONSE   0
 
#define DOWNLOAD_SEGMENT_RESPONSE   1
 
#define INITIATE_DOWNLOAD_RESPONSE   3
 
#define INITIATE_UPLOAD_RESPONSE   2
 
#define ABORT_TRANSFER_REQUEST   4
 
#define NMT   0x0
 
#define SYNC   0x1
 
#define BOOT   0x2
 
#define PDO1tx   0x3
 
#define PDO1rx   0x4
 
#define PDO2tx   0x5
 
#define PDO2rx   0x6
 
#define PDO3tx   0x7
 
#define PDO3rx   0x8
 
#define PDO4tx   0x9
 
#define PDO4rx   0xA
 
#define SDOtx   0xB
 
#define SDOrx   0xC
 
#define NODE_GUARD   0xE
 
#define LSS   0xF
 
#define NMT_Start_Nodes   0x01
 
#define NMT_Stop_Nodes   0x02
 
#define NMT_Enter_Patient_Operation   0x03
 
#define NMT_Enter_X_Manual   0x04
 
#define NMT_Enter_Y_Manual   0x05
 
#define NMT_Enter_Stop_Stim   0x06
 
#define NMT_Enter_Wait_Mode   0x07 /* Command to return to waiting for next */
 
#define NMT_Enter_Patient_Manual   0x08 /* corresponds to 'Test Patient Mode ' */
 
#define NMT_Enter_Produce_X_Manual   0x09
 
#define NMT_Do_Save_Cmd   0x0A
 
#define NMT_Do_Restore_Cmd   0x0B
 
#define NMT_Enter_Record_X   0x0C
 
#define NMT_Net_PDO_On   0x0D
 
#define NMT_Net_PDO_Off   0x0E
 
#define NMT_Return_Node_Table   0x10
 
#define NMT_Return_Single_Node   0x11
 
#define NMT_Group_On   0x20
 
#define NMT_Group_Off   0x21
 
#define NMT_All_Groups_Off   0x22
 
#define NMT_Reset_Node   0x81
 
#define NMT_Reset_Comunication   0x82
 
#define NMT_Enter_Bootloader   0x83
 
#define NMT_Start_Sync   0x84
 
#define NMT_Stop_Sync   0x85
 
#define NMT_Start_PDO   0x86
 
#define NMT_Stop_PDO   0x87
 
#define NMT_Set_RTC   0x88
 
#define NMT_Set_Alarm   0x89
 
#define NMT_Reset_Watchdog   0x8A
 
#define NMT_Radio_WOR_ON   0x8B
 
#define NMT_Radio_WOR_OFF   0x8C
 
#define NMT_Run_Script   0x8D
 
#define NMT_Enable_Script   0x8E
 
#define NMT_Disable_Script   0x8F
 
#define NMT_Erase_Serial_Eprom   0x90
 
#define NMT_Reset_Block_Counter   0x91
 
#define NMT_Radio_Address   0x92
 
#define NMT_Wake_Remote_Modules   0x93
 
#define NMT_WOR_Start_POLL   0x94
 
#define NMT_Network_On   0x95
 
#define NMT_Network_Off   0x96
 
#define NMT_Halt_RTC   0x97
 
#define NMT_Clear_CAN_Errors   0x98
 
#define NMT_Set_Radio_Power   0x99
 
#define NMT_Init_NV_Memory   0x9A
 
#define NMT_Init_CAN   0x9B
 
#define NMT_Reset_Radio_Counters   0x9C
 
#define NMT_Reset_OD_Defaults   0x9D
 
#define NMT_Reset_Module   0x9E
 
#define NMT_Enter_Low_Power   0x9F
 
#define NMT_Start_SDO_Graph   0xA1
 
#define NMT_Stop_SDO_Graph   0xA2
 
#define NMT_Start_HS_Graph   0xA3
 
#define NMT_Stop_HS_Graph   0xA4
 
#define NMT_Set_IMU_Mode   0xC3
 Set IMU mode (ISPU, Accelerometer, and Gyroscope)
 
#define LSS_RESET   0x0 /* Transmission not started. Init state. */
 
#define LSS_FINISHED   0x1 /* data are available */
 
#define LSS_ABORTED_INTERNAL   0x2 /* Aborted but not because of an abort message. */
 
#define LSS_TRANS_IN_PROGRESS   0x3
 
#define state1   0x01
 
#define state2   0x02
 
#define state3   0x03
 
#define state4   0x04
 
#define state5   0x05
 
#define state6   0x06
 
#define state7   0x07
 
#define state8   0x08
 
#define state9   0x09
 
#define state10   0x0A
 
#define state11   0x0B
 

Detailed Description

Created on: Oct 9, 2024 Author: jenej

Definition in file def.h.

Macro Definition Documentation

◆ ABORT_TRANSFER_REQUEST [1/2]

#define ABORT_TRANSFER_REQUEST   4

Definition at line 78 of file def.h.

◆ ABORT_TRANSFER_REQUEST [2/2]

#define ABORT_TRANSFER_REQUEST   4

Definition at line 78 of file def.h.

◆ BOOT

#define BOOT   0x2

Definition at line 94 of file def.h.

◆ DOWNLOAD_SEGMENT_REQUEST

#define DOWNLOAD_SEGMENT_REQUEST   0

Definition at line 74 of file def.h.

◆ DOWNLOAD_SEGMENT_RESPONSE

#define DOWNLOAD_SEGMENT_RESPONSE   1

Definition at line 82 of file def.h.

◆ ERR_NOERROR

#define ERR_NOERROR   0

Definition at line 56 of file def.h.

◆ FALSE

#define FALSE   0

Definition at line 53 of file def.h.

◆ INITIATE_DOWNLOAD_REQUEST

#define INITIATE_DOWNLOAD_REQUEST   1

Definition at line 75 of file def.h.

◆ INITIATE_DOWNLOAD_RESPONSE

#define INITIATE_DOWNLOAD_RESPONSE   3

Definition at line 83 of file def.h.

◆ INITIATE_UPLOAD_REQUEST

#define INITIATE_UPLOAD_REQUEST   2

Definition at line 76 of file def.h.

◆ INITIATE_UPLOAD_RESPONSE

#define INITIATE_UPLOAD_RESPONSE   2

Definition at line 84 of file def.h.

◆ LSS

#define LSS   0xF

Definition at line 106 of file def.h.

◆ LSS_ABORTED_INTERNAL

#define LSS_ABORTED_INTERNAL   0x2 /* Aborted but not because of an abort message. */

Definition at line 180 of file def.h.

◆ LSS_FINISHED

#define LSS_FINISHED   0x1 /* data are available */

Definition at line 179 of file def.h.

◆ LSS_RESET

#define LSS_RESET   0x0 /* Transmission not started. Init state. */

Status of the LSS transmission

Definition at line 178 of file def.h.

◆ LSS_TRANS_IN_PROGRESS

#define LSS_TRANS_IN_PROGRESS   0x3

Definition at line 181 of file def.h.

◆ NMT

#define NMT   0x0

Definition at line 92 of file def.h.

◆ NMT_All_Groups_Off

#define NMT_All_Groups_Off   0x22

Definition at line 133 of file def.h.

◆ NMT_Clear_CAN_Errors

#define NMT_Clear_CAN_Errors   0x98

Definition at line 160 of file def.h.

◆ NMT_Disable_Script

#define NMT_Disable_Script   0x8F

Definition at line 151 of file def.h.

◆ NMT_Do_Restore_Cmd

#define NMT_Do_Restore_Cmd   0x0B

Definition at line 121 of file def.h.

◆ NMT_Do_Save_Cmd

#define NMT_Do_Save_Cmd   0x0A

Definition at line 120 of file def.h.

◆ NMT_Enable_Script

#define NMT_Enable_Script   0x8E

Definition at line 150 of file def.h.

◆ NMT_Enter_Bootloader

#define NMT_Enter_Bootloader   0x83

Definition at line 139 of file def.h.

◆ NMT_Enter_Low_Power

#define NMT_Enter_Low_Power   0x9F

Definition at line 167 of file def.h.

◆ NMT_Enter_Patient_Manual

#define NMT_Enter_Patient_Manual   0x08 /* corresponds to 'Test Patient Mode ' */

Definition at line 118 of file def.h.

◆ NMT_Enter_Patient_Operation

#define NMT_Enter_Patient_Operation   0x03

Definition at line 113 of file def.h.

◆ NMT_Enter_Produce_X_Manual

#define NMT_Enter_Produce_X_Manual   0x09

Definition at line 119 of file def.h.

◆ NMT_Enter_Record_X

#define NMT_Enter_Record_X   0x0C

Definition at line 122 of file def.h.

◆ NMT_Enter_Stop_Stim

#define NMT_Enter_Stop_Stim   0x06

Definition at line 116 of file def.h.

◆ NMT_Enter_Wait_Mode

#define NMT_Enter_Wait_Mode   0x07 /* Command to return to waiting for next */

Definition at line 117 of file def.h.

◆ NMT_Enter_X_Manual

#define NMT_Enter_X_Manual   0x04

Definition at line 114 of file def.h.

◆ NMT_Enter_Y_Manual

#define NMT_Enter_Y_Manual   0x05

Definition at line 115 of file def.h.

◆ NMT_Erase_Serial_Eprom

#define NMT_Erase_Serial_Eprom   0x90

Definition at line 152 of file def.h.

◆ NMT_Group_Off

#define NMT_Group_Off   0x21

Definition at line 132 of file def.h.

◆ NMT_Group_On

#define NMT_Group_On   0x20

Definition at line 131 of file def.h.

◆ NMT_Halt_RTC

#define NMT_Halt_RTC   0x97

Definition at line 159 of file def.h.

◆ NMT_Init_CAN

#define NMT_Init_CAN   0x9B

Definition at line 163 of file def.h.

◆ NMT_Init_NV_Memory

#define NMT_Init_NV_Memory   0x9A

Definition at line 162 of file def.h.

◆ NMT_Net_PDO_Off

#define NMT_Net_PDO_Off   0x0E

Definition at line 124 of file def.h.

◆ NMT_Net_PDO_On

#define NMT_Net_PDO_On   0x0D

Definition at line 123 of file def.h.

◆ NMT_Network_Off

#define NMT_Network_Off   0x96

Definition at line 158 of file def.h.

◆ NMT_Network_On

#define NMT_Network_On   0x95

Definition at line 157 of file def.h.

◆ NMT_Radio_Address

#define NMT_Radio_Address   0x92

Definition at line 154 of file def.h.

◆ NMT_Radio_WOR_OFF

#define NMT_Radio_WOR_OFF   0x8C

Definition at line 148 of file def.h.

◆ NMT_Radio_WOR_ON

#define NMT_Radio_WOR_ON   0x8B

Definition at line 147 of file def.h.

◆ NMT_Reset_Block_Counter

#define NMT_Reset_Block_Counter   0x91

Definition at line 153 of file def.h.

◆ NMT_Reset_Comunication

#define NMT_Reset_Comunication   0x82

Definition at line 138 of file def.h.

◆ NMT_Reset_Module

#define NMT_Reset_Module   0x9E

Definition at line 166 of file def.h.

◆ NMT_Reset_Node

#define NMT_Reset_Node   0x81

Definition at line 137 of file def.h.

◆ NMT_Reset_OD_Defaults

#define NMT_Reset_OD_Defaults   0x9D

Definition at line 165 of file def.h.

◆ NMT_Reset_Radio_Counters

#define NMT_Reset_Radio_Counters   0x9C

Definition at line 164 of file def.h.

◆ NMT_Reset_Watchdog

#define NMT_Reset_Watchdog   0x8A

Definition at line 146 of file def.h.

◆ NMT_Return_Node_Table

#define NMT_Return_Node_Table   0x10

Definition at line 127 of file def.h.

◆ NMT_Return_Single_Node

#define NMT_Return_Single_Node   0x11

Definition at line 128 of file def.h.

◆ NMT_Run_Script

#define NMT_Run_Script   0x8D

Definition at line 149 of file def.h.

◆ NMT_Set_Alarm

#define NMT_Set_Alarm   0x89

Definition at line 145 of file def.h.

◆ NMT_Set_IMU_Mode

#define NMT_Set_IMU_Mode   0xC3

Set IMU mode (ISPU, Accelerometer, and Gyroscope)

Definition at line 174 of file def.h.

Referenced by processNMTstateChange().

◆ NMT_Set_Radio_Power

#define NMT_Set_Radio_Power   0x99

Definition at line 161 of file def.h.

◆ NMT_Set_RTC

#define NMT_Set_RTC   0x88

Definition at line 144 of file def.h.

◆ NMT_Start_HS_Graph

#define NMT_Start_HS_Graph   0xA3

Definition at line 170 of file def.h.

◆ NMT_Start_Nodes

#define NMT_Start_Nodes   0x01

Definition at line 111 of file def.h.

◆ NMT_Start_PDO

#define NMT_Start_PDO   0x86

Definition at line 142 of file def.h.

◆ NMT_Start_SDO_Graph

#define NMT_Start_SDO_Graph   0xA1

Definition at line 168 of file def.h.

◆ NMT_Start_Sync

#define NMT_Start_Sync   0x84

Definition at line 140 of file def.h.

◆ NMT_Stop_HS_Graph

#define NMT_Stop_HS_Graph   0xA4

Definition at line 171 of file def.h.

◆ NMT_Stop_Nodes

#define NMT_Stop_Nodes   0x02

Definition at line 112 of file def.h.

◆ NMT_Stop_PDO

#define NMT_Stop_PDO   0x87

Definition at line 143 of file def.h.

◆ NMT_Stop_SDO_Graph

#define NMT_Stop_SDO_Graph   0xA2

Definition at line 169 of file def.h.

◆ NMT_Stop_Sync

#define NMT_Stop_Sync   0x85

Definition at line 141 of file def.h.

◆ NMT_Wake_Remote_Modules

#define NMT_Wake_Remote_Modules   0x93

Definition at line 155 of file def.h.

◆ NMT_WOR_Start_POLL

#define NMT_WOR_Start_POLL   0x94

Definition at line 156 of file def.h.

◆ NODE_GUARD

#define NODE_GUARD   0xE

Definition at line 105 of file def.h.

◆ NOT_A_REQUEST

#define NOT_A_REQUEST   0

Definition at line 42 of file def.h.

◆ OD_LENGTH_DATA_INVALID

#define OD_LENGTH_DATA_INVALID   0x06070010

Definition at line 21 of file def.h.

◆ OD_NO_SUCH_OBJECT

#define OD_NO_SUCH_OBJECT   0x06020000

Definition at line 19 of file def.h.

◆ OD_NO_SUCH_SUBINDEX

#define OD_NO_SUCH_SUBINDEX   0x06090011

Definition at line 22 of file def.h.

◆ OD_NOT_MAPPABLE

#define OD_NOT_MAPPABLE   0x06040041

Definition at line 20 of file def.h.

◆ OD_READ_NOT_ALLOWED

#define OD_READ_NOT_ALLOWED   0x06010001

Definition at line 17 of file def.h.

◆ OD_SUCCESSFUL

#define OD_SUCCESSFUL   0x00000000

definitions used for object dictionary access. ie SDO Abort codes . (See DS 301 v.4.02 p.48)

Definition at line 16 of file def.h.

Referenced by _getODentry(), _setODentry(), buildPDO(), objdictToSDOBlockline(), objdictToSDOline(), PDOInit(), processPDO(), RegisterSetODentryCallBack(), RestoreValues(), SaveValues(), and SDOlineToObjdict().

◆ OD_VALUE_RANGE_EXCEEDED

#define OD_VALUE_RANGE_EXCEEDED   0x06090030 /* Value range test result */

Definition at line 23 of file def.h.

◆ OD_VALUE_TOO_HIGH

#define OD_VALUE_TOO_HIGH   0x06090032 /* Value range test result */

Definition at line 25 of file def.h.

◆ OD_VALUE_TOO_LOW

#define OD_VALUE_TOO_LOW   0x06090031 /* Value range test result */

Definition at line 24 of file def.h.

◆ OD_WRITE_NOT_ALLOWED

#define OD_WRITE_NOT_ALLOWED   0x06010002

Definition at line 18 of file def.h.

◆ PDO1rx

#define PDO1rx   0x4

Definition at line 96 of file def.h.

◆ PDO1tx

#define PDO1tx   0x3

Definition at line 95 of file def.h.

◆ PDO2rx

#define PDO2rx   0x6

Definition at line 98 of file def.h.

◆ PDO2tx

#define PDO2tx   0x5

Definition at line 97 of file def.h.

◆ PDO3rx

#define PDO3rx   0x8

Definition at line 100 of file def.h.

◆ PDO3tx

#define PDO3tx   0x7

Definition at line 99 of file def.h.

◆ PDO4rx

#define PDO4rx   0xA

Definition at line 102 of file def.h.

◆ PDO4tx

#define PDO4tx   0x9

Definition at line 101 of file def.h.

◆ REQUEST

#define REQUEST   1

Constantes which permit to define if a PDO frame is a request one or a data one

Definition at line 41 of file def.h.

Referenced by masterSendNMTnodeguard(), processPDO(), and sendPDOrequest().

◆ Rx

#define Rx   0

Definition at line 47 of file def.h.

◆ SDO_ABORTED_INTERNAL

#define SDO_ABORTED_INTERNAL   0x85 /* Aborted but not because of an abort message (Timeout) */

Definition at line 63 of file def.h.

◆ SDO_ABORTED_RCV

#define SDO_ABORTED_RCV   0x80 /* Received an abort message. Data not available */

Definition at line 62 of file def.h.

◆ SDO_CLIENT

#define SDO_CLIENT   0x2

Definition at line 70 of file def.h.

◆ SDO_DOWNLOAD_IN_PROGRESS

#define SDO_DOWNLOAD_IN_PROGRESS   0x2

Definition at line 64 of file def.h.

◆ SDO_FINISHED

#define SDO_FINISHED   0x1 /* data are available */

Definition at line 61 of file def.h.

◆ SDO_RESET

#define SDO_RESET   0x0 /* Transmission not started. Init state. */

Status of the SDO transmission

Definition at line 60 of file def.h.

Referenced by getSDOfreeLine(), getSDOlineOnUse(), and resetSDOline().

◆ SDO_SERVER

#define SDO_SERVER   0x1

Definition at line 69 of file def.h.

◆ SDO_UNKNOWN

#define SDO_UNKNOWN   0x3

Definition at line 71 of file def.h.

◆ SDO_UPLOAD_IN_PROGRESS

#define SDO_UPLOAD_IN_PROGRESS   0x3

Definition at line 65 of file def.h.

◆ SDOABT_APP_TIMEOUT

#define SDOABT_APP_TIMEOUT   0x08000040

Definition at line 33 of file def.h.

◆ SDOABT_GENERAL_ERROR

#define SDOABT_GENERAL_ERROR   0x08000000 /* Error size of SDO message */

Definition at line 31 of file def.h.

◆ SDOABT_LOCAL_CTRL_ERROR

#define SDOABT_LOCAL_CTRL_ERROR   0x08000021

Definition at line 32 of file def.h.

◆ SDOABT_OUT_OF_MEMORY

#define SDOABT_OUT_OF_MEMORY   0x05040005 /* Size data exceed SDO_MAX_LENGTH_TRANSFERT */

Definition at line 30 of file def.h.

◆ SDOABT_TIMED_OUT

#define SDOABT_TIMED_OUT   0x05040000

Definition at line 29 of file def.h.

◆ SDOABT_TOGGLE_NOT_ALTERNED

#define SDOABT_TOGGLE_NOT_ALTERNED   0x05030000

Definition at line 28 of file def.h.

◆ SDOrx

#define SDOrx   0xC

Definition at line 104 of file def.h.

◆ SDOtx

#define SDOtx   0xB

Definition at line 103 of file def.h.

◆ state1

#define state1   0x01

Definition at line 186 of file def.h.

◆ state10

#define state10   0x0A

Definition at line 195 of file def.h.

◆ state11

#define state11   0x0B

Definition at line 196 of file def.h.

◆ state2

#define state2   0x02

Definition at line 187 of file def.h.

◆ state3

#define state3   0x03

Definition at line 188 of file def.h.

◆ state4

#define state4   0x04

Definition at line 189 of file def.h.

◆ state5

#define state5   0x05

Definition at line 190 of file def.h.

◆ state6

#define state6   0x06

Definition at line 191 of file def.h.

◆ state7

#define state7   0x07

Definition at line 192 of file def.h.

◆ state8

#define state8   0x08

Definition at line 193 of file def.h.

◆ state9

#define state9   0x09

Definition at line 194 of file def.h.

◆ SYNC

#define SYNC   0x1

Definition at line 93 of file def.h.

◆ TRUE

#define TRUE   1

Definition at line 50 of file def.h.

◆ Tx

#define Tx   1

Definition at line 48 of file def.h.

◆ UPLOAD_SEGMENT_REQUEST

#define UPLOAD_SEGMENT_REQUEST   3

Definition at line 77 of file def.h.

◆ UPLOAD_SEGMENT_RESPONSE

#define UPLOAD_SEGMENT_RESPONSE   0

Definition at line 81 of file def.h.