NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
struct_s_transfer Struct Reference
Collaboration diagram for struct_s_transfer:

Public Attributes

UNS8 nodeId
 
UNS8 whoami
 
UNS8 state
 
UNS8 toggle
 
UNS32 abortCode
 
UNS16 index
 
UNS8 subIndex
 
UNS32 count
 
UNS32 offset
 
UNS8 data [SDO_MAX_LENGTH_TRANSFERT]
 
UNS8 dataType
 
TIMER_HANDLE timer
 
SDOCallback_t Callback
 

Detailed Description

Definition at line 23 of file sdo.h.

Member Data Documentation

◆ abortCode

UNS32 struct_s_transfer::abortCode

Sent or received index and subindex of the dictionary where to store (for a received SDO) or to read (for a transmit SDO)

Definition at line 30 of file sdo.h.

Referenced by getReadResultNetworkDict(), getWriteResultNetworkDict(), processSDO(), resetSDOline(), and SDOTimeoutAlarm().

◆ Callback

SDOCallback_t struct_s_transfer::Callback

The user callback func to be called at SDO transaction end

Definition at line 53 of file sdo.h.

Referenced by _readBlockNetworkDict(), _readNetworkDict(), _writeNetworkDict(), initSDOline(), processSDO(), and SDOTimeoutAlarm().

◆ count

UNS32 struct_s_transfer::count

◆ data

UNS8 struct_s_transfer::data[SDO_MAX_LENGTH_TRANSFERT]

Definition at line 42 of file sdo.h.

◆ dataType

UNS8 struct_s_transfer::dataType

Defined in objdictdef.h Value is visible_string if it is a string, any other value if it is not a string, like 0. In fact, it is used only if client.

Definition at line 43 of file sdo.h.

Referenced by _readBlockNetworkDict(), _readNetworkDict(), _writeNetworkDict(), getReadResultNetworkDict(), initSDOline(), and objdictToSDOBlockline().

◆ index

UNS16 struct_s_transfer::index

Definition at line 33 of file sdo.h.

◆ nodeId

UNS8 struct_s_transfer::nodeId

own ID if server, or node ID of the server if client

Definition at line 25 of file sdo.h.

Referenced by getSDOlineOnUse(), initSDOline(), and SDOTimeoutAlarm().

◆ offset

UNS32 struct_s_transfer::offset

stack pointer of data[] Used only to tranfer part of a line to or from a SDO. offset is always pointing on the next free cell of data[]. WARNING s_transfer.data is subject to ENDIANISATION (with respect to CANOPEN_BIG_ENDIAN)

Definition at line 36 of file sdo.h.

Referenced by _writeNetworkDict(), getReadResultNetworkDict(), getSDOlineRestBytes(), initSDOline(), lineToSDO(), objdictToSDOBlockline(), objdictToSDOline(), SDOlineToObjdict(), and SDOtoLine().

◆ state

UNS8 struct_s_transfer::state

state of the transmission : Takes the values SDO_...

Definition at line 28 of file sdo.h.

Referenced by failedSDO(), getReadResultNetworkDict(), getSDOfreeLine(), getSDOlineOnUse(), getWriteResultNetworkDict(), initSDOline(), processSDO(), and SDOTimeoutAlarm().

◆ subIndex

UNS8 struct_s_transfer::subIndex

Definition at line 34 of file sdo.h.

◆ timer

TIMER_HANDLE struct_s_transfer::timer

Time counter to implement a timeout in milliseconds. It is automatically incremented whenever the line state is in SDO_DOWNLOAD_IN_PROGRESS or SDO_UPLOAD_IN_PROGRESS, and reseted to 0 when the response SDO have been received.

Definition at line 47 of file sdo.h.

Referenced by SDOTimeoutAlarm().

◆ toggle

UNS8 struct_s_transfer::toggle

Definition at line 29 of file sdo.h.

◆ whoami

UNS8 struct_s_transfer::whoami

Takes the values SDO_CLIENT or SDO_SERVER

Definition at line 27 of file sdo.h.

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


The documentation for this struct was generated from the following file: