iCub-main
Functions | Variables
FeatureInterface.cpp File Reference
#include <ethManager.h>
#include <IethResource.h>
#include <abstractEthResource.h>
#include <theNVmanager.h>
#include <yarp/os/Time.h>
#include <yarp/os/LogStream.h>
#include <ace/ACE.h>
#include <ace/config.h>
#include <ace/Recursive_Thread_Mutex.h>
#include "EOYtheSystem.h"
#include "EOYmutex.h"
#include "diagnosticLowLevelFormatter.h"
#include "FeatureInterface.h"
#include "FeatureInterface_hid.h"
+ Include dependency graph for FeatureInterface.cpp:

Go to the source code of this file.

Functions

void feat_Initialise (void *handleOfTheEthManager)
 
void feat_DeInitialise ()
 
const eOysystem_cfg_t * feat_getSYSconfig ()
 
eObool_t feat_manage_motioncontrol_data (eOipv4addr_t ipv4, eOprotID32_t id32, void *rxdata)
 
eObool_t feat_manage_motioncontrol_addinfo_multienc (eOipv4addr_t ipv4, eOprotID32_t id32, void *rxdata)
 
eObool_t feat_manage_skin_data (eOipv4addr_t ipv4, eOprotID32_t id32, void *arrayofcandata)
 
eObool_t feat_manage_analogsensors_data (eOipv4addr_t ipv4, eOprotID32_t id32, void *data)
 
void * feat_MC_handler_get (eOipv4addr_t ipv4, eOprotID32_t id32)
 
double feat_yarp_time_now (void)
 
eObool_t feat_signal_network_onsay (eOipv4addr_t ipv4, eOprotID32_t id32, uint32_t signature)
 
eObool_t feat_signal_network_onsig (eOipv4addr_t ipv4, eOprotID32_t id32, uint32_t signature)
 
eObool_t feat_CANprint (eOipv4addr_t ipv4, eOmn_info_basic_t *infobasic)
 
const char * feat_GetBoardName (eOipv4addr_t ipv4)
 
void feat_PrintTrace (char *string)
 
void feat_PrintDebug (char *string)
 
void feat_PrintInfo (char *string)
 
void feat_PrintWarning (char *string)
 
void feat_PrintError (char *string)
 
void feat_PrintFatal (char *string)
 
void feat_manage_diagnostic (eOmn_info_basic_t *infobasic, uint8_t *extra, const EOnv *nv, const eOropdescriptor_t *rd)
 
void * ace_mutex_new (void)
 
int8_t ace_mutex_take (void *m, uint32_t tout_usec)
 
int8_t ace_mutex_release (void *m)
 
void ace_mutex_delete (void *m)
 

Variables

static eth::TheEthManager_interface2ethManager = NULL
 
static const eOysystem_cfg_t eosys_config_ace
 

Function Documentation

◆ ace_mutex_delete()

void ace_mutex_delete ( void *  m)

Definition at line 397 of file FeatureInterface.cpp.

◆ ace_mutex_new()

void* ace_mutex_new ( void  )

Definition at line 360 of file FeatureInterface.cpp.

◆ ace_mutex_release()

int8_t ace_mutex_release ( void *  m)

Definition at line 383 of file FeatureInterface.cpp.

◆ ace_mutex_take()

int8_t ace_mutex_take ( void *  m,
uint32_t  tout_usec 
)

Definition at line 368 of file FeatureInterface.cpp.

◆ feat_CANprint()

eObool_t feat_CANprint ( eOipv4addr_t  ipv4,
eOmn_info_basic_t *  infobasic 
)

Definition at line 281 of file FeatureInterface.cpp.

◆ feat_DeInitialise()

void feat_DeInitialise ( )

Definition at line 100 of file FeatureInterface.cpp.

◆ feat_GetBoardName()

const char* feat_GetBoardName ( eOipv4addr_t  ipv4)

Definition at line 295 of file FeatureInterface.cpp.

◆ feat_getSYSconfig()

const eOysystem_cfg_t* feat_getSYSconfig ( )

Definition at line 105 of file FeatureInterface.cpp.

◆ feat_Initialise()

void feat_Initialise ( void *  handleOfTheEthManager)

Definition at line 91 of file FeatureInterface.cpp.

◆ feat_manage_analogsensors_data()

eObool_t feat_manage_analogsensors_data ( eOipv4addr_t  ipv4,
eOprotID32_t  id32,
void *  data 
)

Definition at line 213 of file FeatureInterface.cpp.

◆ feat_manage_diagnostic()

void feat_manage_diagnostic ( eOmn_info_basic_t *  infobasic,
uint8_t *  extra,
const EOnv *  nv,
const eOropdescriptor_t *  rd 
)

Definition at line 344 of file FeatureInterface.cpp.

◆ feat_manage_motioncontrol_addinfo_multienc()

eObool_t feat_manage_motioncontrol_addinfo_multienc ( eOipv4addr_t  ipv4,
eOprotID32_t  id32,
void *  rxdata 
)

commented out this section thus to use the addInfo.multienc[] vector for the rawValuesPublisher IethResource* multienc = NULL;

if(NULL == _interface2ethManager) { return eobool_false; }

multienc = _interface2ethManager->ethBoards->get_interface(ipv4, iethres_analogmultienc);

if(NULL == multienc) { char ipinfo[20]; char nvinfo[128]; eo_common_ipv4addr_to_string(ipv4, ipinfo, sizeof(ipinfo)); eoprot_ID2information(id32, nvinfo, sizeof(nvinfo)); yDebug("feat_manage_motioncontrol_addinfo_multienc() fails to get a handle of embObjMotionControl for IP = %s and NV = %s", ipinfo, nvinfo); return eobool_false; }

if(false == multienc->initialised()) { return eobool_false; } else { multienc->update(id32, yarp::os::Time::now(), rxdata); }

Definition at line 144 of file FeatureInterface.cpp.

◆ feat_manage_motioncontrol_data()

eObool_t feat_manage_motioncontrol_data ( eOipv4addr_t  ipv4,
eOprotID32_t  id32,
void *  rxdata 
)

Definition at line 110 of file FeatureInterface.cpp.

◆ feat_manage_skin_data()

eObool_t feat_manage_skin_data ( eOipv4addr_t  ipv4,
eOprotID32_t  id32,
void *  arrayofcandata 
)

Definition at line 179 of file FeatureInterface.cpp.

◆ feat_MC_handler_get()

void* feat_MC_handler_get ( eOipv4addr_t  ipv4,
eOprotID32_t  id32 
)

Definition at line 246 of file FeatureInterface.cpp.

◆ feat_PrintDebug()

void feat_PrintDebug ( char *  string)

Definition at line 314 of file FeatureInterface.cpp.

◆ feat_PrintError()

void feat_PrintError ( char *  string)

Definition at line 332 of file FeatureInterface.cpp.

◆ feat_PrintFatal()

void feat_PrintFatal ( char *  string)

Definition at line 338 of file FeatureInterface.cpp.

◆ feat_PrintInfo()

void feat_PrintInfo ( char *  string)

Definition at line 320 of file FeatureInterface.cpp.

◆ feat_PrintTrace()

void feat_PrintTrace ( char *  string)

Definition at line 308 of file FeatureInterface.cpp.

◆ feat_PrintWarning()

void feat_PrintWarning ( char *  string)

Definition at line 326 of file FeatureInterface.cpp.

◆ feat_signal_network_onsay()

eObool_t feat_signal_network_onsay ( eOipv4addr_t  ipv4,
eOprotID32_t  id32,
uint32_t  signature 
)

Definition at line 266 of file FeatureInterface.cpp.

◆ feat_signal_network_onsig()

eObool_t feat_signal_network_onsig ( eOipv4addr_t  ipv4,
eOprotID32_t  id32,
uint32_t  signature 
)

Definition at line 273 of file FeatureInterface.cpp.

◆ feat_yarp_time_now()

double feat_yarp_time_now ( void  )

Definition at line 261 of file FeatureInterface.cpp.

Variable Documentation

◆ _interface2ethManager

eth::TheEthManager* _interface2ethManager = NULL
static

Definition at line 76 of file FeatureInterface.cpp.

◆ eosys_config_ace

const eOysystem_cfg_t eosys_config_ace
static
Initial value:
=
{
{
}
}
double feat_yarp_time_now(void)
void * ace_mutex_new(void)
int8_t ace_mutex_take(void *m, uint32_t tout_usec)
int8_t ace_mutex_release(void *m)
void ace_mutex_delete(void *m)

Definition at line 78 of file FeatureInterface.cpp.