Lely core libraries 2.3.4
|
This is the internal header file of the NMT service manager declarations. More...
Go to the source code of this file.
Data Structures | |
struct | co_nmt_srv |
A CANopen NMT service manager. More... | |
Functions | |
void | co_nmt_srv_init (struct co_nmt_srv *srv, co_nmt_t *nmt) |
Initializes a CANopen NMT service manager. More... | |
void | co_nmt_srv_fini (struct co_nmt_srv *srv) |
Finalizes a CANopen NMT service manager. More... | |
void | co_nmt_srv_set (struct co_nmt_srv *srv, co_nmt_t *nmt, int set) |
Enables/disables the specified CANopen services. More... | |
This is the internal header file of the NMT service manager declarations.
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 nmt_srv.h.
void co_nmt_srv_init | ( | struct co_nmt_srv * | srv, |
co_nmt_t * | nmt | ||
) |
Initializes a CANopen NMT service manager.
void co_nmt_srv_fini | ( | struct co_nmt_srv * | srv | ) |
Finalizes a CANopen NMT service manager.
void co_nmt_srv_set | ( | struct co_nmt_srv * | srv, |
co_nmt_t * | nmt, | ||
int | set | ||
) |
Enables/disables the specified CANopen services.
srv | a pointer to a CANopen NMT service manager. |
nmt | a pointer to an NMT master/slave service. |
set | the services to be enabled (any combination of CO_NMT_SRV_PDO, CO_NMT_SRV_SDO, CO_NMT_SRV_SYNC, CO_NMT_SRV_TIME and CO_NMT_SRV_EMCY). Services not part of set will be disabled. |