nico@215: nico@215:
nico@215:#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include "canfestival.h"
#include "Master.h"
#include "Slave.h"
#include "TestMasterSlave.h"
nico@215: Include dependency graph for TestMasterSlave.c:
nico@215: Go to the source code of this file.
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"} |
void catch_signal | nico@215:( | nico@215:int | nico@215:sig | 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:
void help | nico@215:( | 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:
void InitNodes | nico@215:( | nico@215:CO_Data * | nico@215:d, | nico@215:|
nico@215: | nico@215: | UNS32 | nico@215: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:
int main | nico@215:( | nico@215:int | nico@215:argc, | nico@215:|
nico@215: | nico@215: | char ** | nico@215: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:
UNS32 OnMasterMap1Update | nico@215:( | nico@215:CO_Data * | nico@215:d, | nico@215:|
nico@215: | nico@215: | const indextable * | nico@215:unsused_indextable, | nico@215:|
nico@215: | nico@215: | UNS8 | nico@215: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:
s_BOARD MasterBoard = {"1", "125K"} | 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:
etisserant@240: etisserant@240:
s_BOARD SlaveBoard = {"0", "125K"} | 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:
etisserant@240: