#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"
Include dependency graph for TestMasterSlave.c:
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 | ( | int | sig | ) |
Definition at line 56 of file TestMasterSlave.c.
References eprintf.
Referenced by catch_signal(), and main().
void help | ( | ) |
void InitNodes | ( | CO_Data * | d, | |
UNS32 | id | |||
) |
Definition at line 93 of file TestMasterSlave.c.
References struct_s_BOARD::baudrate, Initialisation, MasterBoard, OnMasterMap1Update(), RegisterSetODentryCallBack(), setNodeId(), setState(), SlaveBoard, TestMaster_Data, and TestSlave_Data.
Referenced by main().
Here is the call graph for this function:
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 119 of file TestMasterSlave.c.
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().
Here is the call graph for this function:
UNS32 OnMasterMap1Update | ( | CO_Data * | d, | |
const indextable * | unsused_indextable, | |||
UNS8 | unsused_bSubindex | |||
) |
Definition at line 46 of file TestMasterSlave.c.
References eprintf, and SlaveMap1.
Referenced by InitNodes().
s_BOARD MasterBoard = {"1", "125K"} |
s_BOARD SlaveBoard = {"0", "125K"} |