Go to the source code of this file.
void CO_errExit |
( |
char * |
msg | ) |
|
CAN object error code and exit program
Definition at line 313 of file main.cpp.
send CANopen generic emergency message
Definition at line 317 of file main.cpp.
void configureCANopen |
( |
int |
nodeId, |
|
|
int |
rtPriority, |
|
|
int |
CANdevice0Index, |
|
|
char * |
CANdevice |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Mainline and threads
< Configurable by use case
< linux CAN device interface for app to bind to: change to can1 for bbb vcan0 for virtual can
< CAN Network NODEID
Definition at line 79 of file main.cpp.
pthread_mutex_t CO_CAN_VALID_mtx = PTHREAD_MUTEX_INITIALIZER |
Mutex is locked, when CAN is not valid (configuration state). May be used from other threads. RT threads may use CO->CANmodule[0]->CANnormal instead.
Definition at line 39 of file main.cpp.
volatile sig_atomic_t CO_endProgram = 0 |
Signal handler
Definition at line 71 of file main.cpp.
Global variable increments each millisecond
Definition at line 70 of file main.cpp.
bool readyToStart = false |
Flag used by control thread to indicate CAN stack functional
Definition at line 43 of file main.cpp.