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

Go to the source code of this file.

Classes

struct  td_subindex
 
struct  td_indextable
 
struct  s_quick_index
 

Macros

#define boolean   0x01
 
#define int8   0x02
 
#define int16   0x03
 
#define int32   0x04
 
#define uint8   0x05
 
#define uint16   0x06
 
#define uint32   0x07
 
#define real32   0x08
 
#define visible_string   0x09
 
#define octet_string   0x0A
 
#define unicode_string   0x0B
 
#define time_of_day   0x0C
 
#define time_difference   0x0D
 
#define domain   0x0F
 
#define int24   0x10
 
#define real64   0x11
 
#define int40   0x12
 
#define int48   0x13
 
#define int56   0x14
 
#define int64   0x15
 
#define uint24   0x16
 
#define uint40   0x18
 
#define uint48   0x19
 
#define uint56   0x1A
 
#define uint64   0x1B
 
#define pdo_communication_parameter   0x20
 
#define pdo_mapping   0x21
 
#define sdo_parameter   0x22
 
#define identity   0x23
 
#define RW   0x00
 
#define WO   0x01
 
#define RO   0x02
 
#define TO_BE_SAVE   0x04
 
#define DCF_TO_SEND   0x08
 
#define GET_NODE_ID(m)
 
#define GET_FUNCTION_CODE(m)
 

Typedefs

typedef struct td_subindex subindex
 
typedef struct td_indextable indextable
 
typedef struct s_quick_index quick_index
 
typedef UNS32(* ODCallback_t) (CO_Data *d, const indextable *, UNS8 bSubindex)
 
typedef const indextable *(* scanIndexOD_t) (UNS16 wIndex, UNS32 *errorCode, ODCallback_t **Callback)
 

Detailed Description

Created on: Oct 9, 2024 Author: jenej

Definition in file objdictdef.h.

Macro Definition Documentation

◆ boolean

#define boolean   0x01

this are static defined datatypes taken fCODE the canopen standard. They are located at index 0x0001 to 0x001B. As described in the standard, they are in the object dictionary for definition purpose only. a device does not to support all of this datatypes.

Definition at line 19 of file objdictdef.h.

◆ DCF_TO_SEND

#define DCF_TO_SEND   0x08

Definition at line 65 of file objdictdef.h.

◆ domain

#define domain   0x0F

Definition at line 33 of file objdictdef.h.

◆ GET_FUNCTION_CODE

#define GET_FUNCTION_CODE ( m)
Value:
(UNS16_LE(m.cob_id) >> 7)

Definition at line 109 of file objdictdef.h.

◆ GET_NODE_ID

#define GET_NODE_ID ( m)
Value:
(UNS16_LE(m.cob_id) & 0x7f)

Definition at line 108 of file objdictdef.h.

◆ identity

#define identity   0x23

Definition at line 50 of file objdictdef.h.

◆ int16

#define int16   0x03

Definition at line 21 of file objdictdef.h.

◆ int24

#define int24   0x10

Definition at line 34 of file objdictdef.h.

◆ int32

#define int32   0x04

Definition at line 22 of file objdictdef.h.

◆ int40

#define int40   0x12

Definition at line 36 of file objdictdef.h.

◆ int48

#define int48   0x13

Definition at line 37 of file objdictdef.h.

◆ int56

#define int56   0x14

Definition at line 38 of file objdictdef.h.

◆ int64

#define int64   0x15

Definition at line 39 of file objdictdef.h.

◆ int8

#define int8   0x02

Definition at line 20 of file objdictdef.h.

◆ octet_string

#define octet_string   0x0A

Definition at line 28 of file objdictdef.h.

◆ pdo_communication_parameter

#define pdo_communication_parameter   0x20

Definition at line 47 of file objdictdef.h.

◆ pdo_mapping

#define pdo_mapping   0x21

Definition at line 48 of file objdictdef.h.

◆ real32

#define real32   0x08

Definition at line 26 of file objdictdef.h.

◆ real64

#define real64   0x11

Definition at line 35 of file objdictdef.h.

◆ RO

#define RO   0x02

Definition at line 62 of file objdictdef.h.

◆ RW

#define RW   0x00

Each entry of the object dictionary can be READONLY (RO), READ/WRITE (RW), WRITE-ONLY (WO)

Definition at line 60 of file objdictdef.h.

◆ sdo_parameter

#define sdo_parameter   0x22

Definition at line 49 of file objdictdef.h.

◆ time_difference

#define time_difference   0x0D

Definition at line 31 of file objdictdef.h.

◆ time_of_day

#define time_of_day   0x0C

Definition at line 30 of file objdictdef.h.

◆ TO_BE_SAVE

#define TO_BE_SAVE   0x04

Definition at line 64 of file objdictdef.h.

◆ uint16

#define uint16   0x06

Definition at line 24 of file objdictdef.h.

◆ uint24

#define uint24   0x16

Definition at line 40 of file objdictdef.h.

◆ uint32

#define uint32   0x07

Definition at line 25 of file objdictdef.h.

◆ uint40

#define uint40   0x18

Definition at line 42 of file objdictdef.h.

◆ uint48

#define uint48   0x19

Definition at line 43 of file objdictdef.h.

◆ uint56

#define uint56   0x1A

Definition at line 44 of file objdictdef.h.

◆ uint64

#define uint64   0x1B

Definition at line 45 of file objdictdef.h.

◆ uint8

#define uint8   0x05

Definition at line 23 of file objdictdef.h.

◆ unicode_string

#define unicode_string   0x0B

Definition at line 29 of file objdictdef.h.

◆ visible_string

#define visible_string   0x09

Definition at line 27 of file objdictdef.h.

◆ WO

#define WO   0x01

Definition at line 61 of file objdictdef.h.

Typedef Documentation

◆ indextable

typedef struct td_indextable indextable

Struct for creating entries in the communictaion profile

◆ ODCallback_t

typedef UNS32(* ODCallback_t) (CO_Data *d, const indextable *, UNS8 bSubindex)

Definition at line 102 of file objdictdef.h.

◆ scanIndexOD_t

typedef const indextable *(* scanIndexOD_t) (UNS16 wIndex, UNS32 *errorCode, ODCallback_t **Callback)

Definition at line 103 of file objdictdef.h.

◆ subindex

typedef struct td_subindex subindex

This are some structs which are neccessary for creating the entries of the object dictionary.