Lely core libraries
2.3.4
|
This file is part of the CANopen library; it contains the implementation of the Electronic Data Sheet (EDS) and Device Configuration File (DCF) functions. More...
#include "co.h"
#include <lely/co/dcf.h>
#include <lely/co/detail/obj.h>
#include <lely/co/pdo.h>
#include <lely/libc/stdio.h>
#include <lely/libc/strings.h>
#include <lely/util/config.h>
#include <lely/util/diag.h>
#include <lely/util/lex.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <lely/co/def/basic.def>
Go to the source code of this file.
Functions | |
co_dev_t * | co_dev_create_from_dcf_file (const char *filename) |
Creates a CANopen device from an EDS or DCF file. More... | |
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. More... | |
This file is part of the CANopen library; it contains the implementation of the Electronic Data Sheet (EDS) and Device Configuration File (DCF) functions.
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.c.
co_dev_t* co_dev_create_from_dcf_file | ( | const char * | filename | ) |
Creates a CANopen device from an EDS or DCF text string.
begin | a pointer to the first character in the string. |
end | a pointer to one past the last character in the string (can be NULL if the string is null-terminated). |
at | an 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. |