Lely core libraries 2.3.4
co_sdo_req Struct Reference

A CANopen SDO upload/download request. More...

#include <sdo.h>

Collaboration diagram for co_sdo_req:

Data Fields

size_t size
 The total size (in bytes) of the value to be uploaded/downloaded.
 
const void * buf
 A pointer to the next bytes to be uploaded/downloaded.
 
size_t nbyte
 The number of bytes available at buf.
 
size_t offset
 The offset of the bytes at buf.
 
struct membuf membuf
 A memory buffer for use by the upload/download indication function.
 

Detailed Description

A CANopen SDO upload/download request.

Definition at line 181 of file sdo.h.

Field Documentation

◆ size

size_t co_sdo_req::size

The total size (in bytes) of the value to be uploaded/downloaded.

This value MUST be set at the beginning of a new request and MUST NOT change afterwards.

Definition at line 187 of file sdo.h.

◆ offset

size_t co_sdo_req::offset

The offset of the bytes at buf.

For the first segment, #offset == 0. For the last segment, #offset + #nbyte == #size.

Definition at line 196 of file sdo.h.

◆ membuf

struct membuf co_sdo_req::membuf

A memory buffer for use by the upload/download indication function.

The memory buffer will be cleared at the beginning of every new request, but otherwise left untouched.

Definition at line 202 of file sdo.h.


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