Lely core libraries
2.2.5
|
This is the internal header file of the NMT 'configuration request' declarations. More...
Go to the source code of this file.
Typedefs | |
typedef struct __co_nmt_cfg | co_nmt_cfg_t |
An opaque CANopen NMT 'configuration request' type. | |
Functions | |
void | co_nmt_cfg_ind (co_nmt_t *nmt, co_unsigned8_t id, co_csdo_t *sdo) |
The CANopen NMT 'update configuration' indication function, invoked when a configuration request is received. More... | |
void | co_nmt_cfg_con (co_nmt_t *nmt, co_unsigned8_t id, co_unsigned32_t ac) |
The CANopen NMT 'configuration request' confirmation function, invoked when a configuration request completes (with success or failure). More... | |
co_nmt_cfg_t * | co_nmt_cfg_create (can_net_t *net, co_dev_t *dev, co_nmt_t *nmt) |
Creates a new CANopen NMT 'configuration request'. More... | |
void | co_nmt_cfg_destroy (co_nmt_cfg_t *boot) |
Destroys a CANopen NMT 'configuration request'. More... | |
int | co_nmt_cfg_cfg_req (co_nmt_cfg_t *cfg, co_unsigned8_t id, int timeout, co_csdo_ind_t *dn_ind, co_csdo_ind_t *up_ind, void *data) |
Starts a CANopen NMT 'configuration request'. More... | |
int | co_nmt_cfg_cfg_res (co_nmt_cfg_t *cfg, co_unsigned32_t ac) |
Indicates the result of the 'update configuration' step of an NMT 'configuration request'. More... | |
This is the internal header file of the NMT 'configuration request' 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_cfg.h.
The CANopen NMT 'update configuration' indication function, invoked when a configuration request is received.
nmt | a pointer to an NMT master service. |
id | the node-ID of the slave (in the range [1..127]). |
sdo | a pointer to a Client-SDO connected to the slave. |
void co_nmt_cfg_con | ( | co_nmt_t * | nmt, |
co_unsigned8_t | id, | ||
co_unsigned32_t | ac | ||
) |
The CANopen NMT 'configuration request' confirmation function, invoked when a configuration request completes (with success or failure).
nmt | a pointer to an NMT master service. |
id | the node-ID of the slave (in the range [1..127]). |
ac | the SDO abort code (0 on success). |
co_nmt_cfg_t* co_nmt_cfg_create | ( | can_net_t * | net, |
co_dev_t * | dev, | ||
co_nmt_t * | nmt | ||
) |
Creates a new CANopen NMT 'configuration request'.
net | a pointer to a CAN network. |
dev | a pointer to a CANopen device. |
nmt | a pointer to an NMT master service. |
void co_nmt_cfg_destroy | ( | co_nmt_cfg_t * | boot | ) |
Destroys a CANopen NMT 'configuration request'.
int co_nmt_cfg_cfg_req | ( | co_nmt_cfg_t * | cfg, |
co_unsigned8_t | id, | ||
int | timeout, | ||
co_csdo_ind_t * | dn_ind, | ||
co_csdo_ind_t * | up_ind, | ||
void * | data | ||
) |
Starts a CANopen NMT 'configuration request'.
cfg | a pointer to an NMT 'configuration request'. |
id | the node-ID. |
timeout | the SDO timeout (in milliseconds). See co_csdo_set_timeout(). |
dn_ind | a pointer to the SDO download progress indication function (can be NULL). |
up_ind | a pointer to the SDO upload progress indication function (can be NULL). |
data | a pointer to user-specified data (can be NULL). data is passed as the last parameter to dn_ind and up_ind. |
int co_nmt_cfg_cfg_res | ( | co_nmt_cfg_t * | cfg, |
co_unsigned32_t | ac | ||
) |
Indicates the result of the 'update configuration' step of an NMT 'configuration request'.
cfg | a pointer to an NMT 'configuration request'. |
ac | the SDO abort code (0 on success). |