📄 nmt.h
字号:
/***************************************************************************
nmt.h - description
-------------------
begin : Fri May 17 2002
copyright : (C) 2002 by Raphael Zulliger
email : zulli@hsr.ch
***************************************************************************/
/***************************************************************************
* *
* This library is Copyright (c) Raphael Zulliger <zulli@gmx.net>. *
* It is licensed under the GNU Library General Public License (LGPL). *
* *
***************************************************************************/
/** \file
* \brief Functions for handling NMT-Messages
*
* By the functions of this file, the slavelib is able to hanle (and send)
* NMT messages by the NMT-Master. NMT-Messages can cause the slavelib to
* change into an other state (e.g. from pre-operational to operational)
*/
#ifndef __nmt_h__
#define __nmt_h__
#include <canop.h>
/** Starts a remote node.
* \param bNode The CANopen node-id of the device to be started (value: 1..127)
*/
void bootNode( BYTE bNode );
/** stops a remote node.
* \param bNode The CANopen node-id of the device to stop (value: 1..127)
*/
void stopNode( BYTE bNode );
/** Resets a remote node.
* \param bNode The CANopen node-id of the device to be resetted (value: 1..127)
*/
void resetNode( BYTE bNode );
/** Resets a remote node's communication.
* \param bNode The CANopen node-id of the device which's communication has to
* be resetted (value: 1..127)
*/
void resetNodeCommunication( BYTE bNode );
/** This function sends a boot-up message (0x700 + node-id) with databyte 1 set to 0
*/
void sendBootUp( void );
/** Called by proccessRxCanMessages( ). It is responsible to check an incoming message
* wheter this is an NMT Object. If it is, then this function changes the state of
* the statemachine of this device
*/
void processReceivedNMT( s_rx_buffer_message* );
#endif // __nmt_h__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -