Lely core libraries  2.2.5
dcf.h File Reference
#include <lely/co/dev.h>
Include dependency graph for dcf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

co_dev_tco_dev_create_from_dcf_file (const char *filename)
 Creates a CANopen device from an EDS or DCF file. More...
 
co_dev_tco_dev_create_from_dcf_text (const char *begin, const char *end, struct floc *at)
 Creates a CANopen device from an EDS or DCF text string. More...
 

Detailed Description

This header file is part of the CANopen library; it contains the Electronic Data Sheet (EDS) and Device Configuration File (DCF) function declarations.

Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file dcf.h.

Function Documentation

◆ co_dev_create_from_dcf_file()

co_dev_t* co_dev_create_from_dcf_file ( const char *  filename)

Creates a CANopen device from an EDS or DCF file.

Returns
a pointer to a new CANopen device, or NULL on error.

Definition at line 100 of file dcf.c.

◆ co_dev_create_from_dcf_text()

co_dev_t* co_dev_create_from_dcf_text ( const char *  begin,
const char *  end,
struct floc at 
)

Creates a CANopen device from an EDS or DCF text string.

Parameters
begina pointer to the first character in the string.
enda pointer to one past the last character in the string (can be NULL if the string is null-terminated).
atan optional pointer to the file location of begin (used for diagnostic purposes). On exit, if at != NULL, *at points to one past the last character parsed.
Returns
a pointer to a new CANopen device, or NULL on error.

Definition at line 153 of file dcf.c.