iCub-main
Loading...
Searching...
No Matches
EoProtocolMC_fun_userdef.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2011 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
3 * Author: Marco Accame
4 * email: marco.accame@iit.it
5 * website: www.robotcub.org
6 * Permission is granted to copy, distribute, and/or modify this program
7 * under the terms of the GNU General Public License, version 2 or any
8 * later version published by the Free Software Foundation.
9 *
10 * A copy of the license can be found at
11 * http://www.robotcub.org/icub/license/gpl.txt
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16 * Public License for more details
17*/
18
19
20/* @file EOProtocolMC_fun_userdef.c
21 @brief This file keeps callbacks used for MC protocol in icub-main
22 @author marco.accame@iit.it
23 @date 22 mar 2016
24**/
25
26
27// --------------------------------------------------------------------------------------------------------------------
28// - external dependencies
29// --------------------------------------------------------------------------------------------------------------------
30
31
32#include "EoCommon.h"
33#include "EOnv.h"
34#include "EoProtocol.h"
35
36#include <FeatureInterface.h>
37
38
39// --------------------------------------------------------------------------------------------------------------------
40// - declaration of extern public interface
41// --------------------------------------------------------------------------------------------------------------------
42
43#include "EoProtocolMC.h"
44
45
46
47// --------------------------------------------------------------------------------------------------------------------
48// - #define with internal scope
49// --------------------------------------------------------------------------------------------------------------------
50// empty-section
51
52// --------------------------------------------------------------------------------------------------------------------
53// - declaration of static functions
54// --------------------------------------------------------------------------------------------------------------------
55
56
57// --------------------------------------------------------------------------------------------------------------------
58// - definition (and initialisation) of static variables
59// --------------------------------------------------------------------------------------------------------------------
60// empty section
61
62
63
64// --------------------------------------------------------------------------------------------------------------------
65// - definition of extern public functions
66// --------------------------------------------------------------------------------------------------------------------
67
68extern void eoprot_fun_ONSAY_mc(const EOnv* nv, const eOropdescriptor_t* rd)
69{
70 feat_signal_network_onsay(eo_nv_GetIP(nv), rd->id32, rd->signature);
71}
72
73
74extern void eoprot_fun_UPDT_mc_joint_status_core(const EOnv* nv, const eOropdescriptor_t* rd)
75{
76 feat_manage_motioncontrol_data(eo_nv_GetIP(nv), rd->id32, (void *)rd->data);
77}
78
79extern void eoprot_fun_UPDT_mc_joint_status_debug(const EOnv* nv, const eOropdescriptor_t* rd)
80{
81 feat_manage_motioncontrol_data(eo_nv_GetIP(nv), rd->id32, (void *)rd->data);
82}
83
84extern void eoprot_fun_UPDT_mc_motor_status(const EOnv* nv, const eOropdescriptor_t* rd)
85{
86 feat_manage_motioncontrol_data(eo_nv_GetIP(nv), rd->id32, (void *)rd->data);
87}
88
89
90extern void eoprot_fun_UPDT_mc_joint_status(const EOnv* nv, const eOropdescriptor_t* rd)
91{
92 feat_manage_motioncontrol_data(eo_nv_GetIP(nv), rd->id32, (void *)rd->data);
93}
94
95
96extern void eoprot_fun_UPDT_mc_joint_status_addinfo_multienc(const EOnv* nv, const eOropdescriptor_t* rd)
97{
98 feat_manage_motioncontrol_addinfo_multienc(eo_nv_GetIP(nv), rd->id32, (void *)rd->data);
99}
100
101// --------------------------------------------------------------------------------------------------------------------
102// - definition of static functions
103// --------------------------------------------------------------------------------------------------------------------
104// empty-section
105
106
107
108
109
110// --------------------------------------------------------------------------------------------------------------------
111// - end-of-file (leave a blank line after)
112// --------------------------------------------------------------------------------------------------------------------
113
114
115
void eoprot_fun_ONSAY_mc(const EOnv *nv, const eOropdescriptor_t *rd)
void eoprot_fun_UPDT_mc_joint_status_core(const EOnv *nv, const eOropdescriptor_t *rd)
void eoprot_fun_UPDT_mc_joint_status(const EOnv *nv, const eOropdescriptor_t *rd)
void eoprot_fun_UPDT_mc_joint_status_debug(const EOnv *nv, const eOropdescriptor_t *rd)
void eoprot_fun_UPDT_mc_motor_status(const EOnv *nv, const eOropdescriptor_t *rd)
void eoprot_fun_UPDT_mc_joint_status_addinfo_multienc(const EOnv *nv, const eOropdescriptor_t *rd)
eObool_t feat_signal_network_onsay(eOipv4addr_t ipv4, eOprotID32_t id32, uint32_t signature)
eObool_t feat_manage_motioncontrol_addinfo_multienc(eOipv4addr_t ipv4, eOprotID32_t id32, void *rxdata)
eObool_t feat_manage_motioncontrol_data(eOipv4addr_t ipv4, eOprotID32_t id32, void *rxdata)