nico@215: nico@215: nico@215: CanFestival: examples/TestMasterSlave/TestMasterSlave.c File Reference nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215: nico@215:

TestMasterSlave.c File Reference

#include <stdio.h>
nico@215: #include <string.h>
nico@215: #include <unistd.h>
nico@215: #include <stdlib.h>
nico@215: #include <signal.h>
nico@215: #include "canfestival.h"
nico@215: #include "Master.h"
nico@215: #include "Slave.h"
nico@215: #include "TestMasterSlave.h"
nico@215: nico@215:

nico@215: Include dependency graph for TestMasterSlave.c:

nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:

nico@215: Go to the source code of this file. nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:

Functions

UNS32 OnMasterMap1Update (CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)
void catch_signal (int sig)
void help ()
void InitNodes (CO_Data *d, UNS32 id)
int main (int argc, char **argv)

Variables

s_BOARD SlaveBoard = {"0", "125K"}
s_BOARD MasterBoard = {"1", "125K"}
nico@215:


Function Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void catch_signal (int  sig  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 56 of file TestMasterSlave.c. nico@215:

nico@215: References eprintf. nico@215:

nico@215: Referenced by catch_signal(), and main(). nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void help (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 64 of file TestMasterSlave.c. nico@215:

nico@215: Referenced by main(). nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void InitNodes (CO_Data d,
UNS32  id 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 93 of file TestMasterSlave.c. nico@215:

etisserant@240: References struct_s_BOARD::baudrate, Initialisation, MasterBoard, OnMasterMap1Update(), RegisterSetODentryCallBack(), setNodeId(), setState(), SlaveBoard, TestMaster_Data, and TestSlave_Data. nico@215:

nico@215: Referenced by main(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
int main (int  argc,
char **  argv 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 119 of file TestMasterSlave.c. nico@215:

etisserant@240: References struct_s_BOARD::baudrate, struct_s_BOARD::busname, canClose(), canOpen(), catch_signal(), eprintf, getopt(), struct_CO_Data::heartbeatError, help(), struct_CO_Data::initialisation, InitNodes(), LoadCanDriver(), MasterBoard, masterSendNMTstateChange(), NMT_Reset_Node, struct_CO_Data::operational, optarg, struct_CO_Data::post_sync, struct_CO_Data::post_TPDO, struct_CO_Data::preOperational, setState(), SlaveBoard, StartTimerLoop(), Stopped, struct_CO_Data::stopped, StopTimerLoop(), struct_CO_Data::storeODSubIndex, TestMaster_Data, TestMaster_heartbeatError(), TestMaster_initialisation(), TestMaster_operational(), TestMaster_post_sync(), TestMaster_post_TPDO(), TestMaster_preOperational(), TestMaster_stopped(), TestSlave_Data, TestSlave_heartbeatError(), TestSlave_initialisation(), TestSlave_operational(), TestSlave_post_sync(), TestSlave_post_TPDO(), TestSlave_preOperational(), TestSlave_stopped(), and TestSlave_storeODSubIndex(). etisserant@240:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
UNS32 OnMasterMap1Update (CO_Data d,
const indextable unsused_indextable,
UNS8  unsused_bSubindex 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 46 of file TestMasterSlave.c. nico@215:

nico@215: References eprintf, and SlaveMap1. nico@215:

nico@215: Referenced by InitNodes(). nico@215:

nico@215:

nico@215:


Variable Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
s_BOARD MasterBoard = {"1", "125K"}
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 53 of file TestMasterSlave.c. nico@215:

nico@215: Referenced by InitNodes(), and main(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
s_BOARD SlaveBoard = {"0", "125K"}
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 52 of file TestMasterSlave.c. nico@215:

nico@215: Referenced by InitNodes(), and main(). nico@215:

nico@215:

etisserant@240:


Generated on Mon Jul 2 19:10:25 2007 for CanFestival by  nico@215: nico@215: doxygen 1.5.1
nico@215: nico@215: