#include <def.h>
Go to the source code of this file.
| Data Structures | |
| struct | td_s_sInitParameter | 
| Defines | |
| #define | START_REMOTE_NODE 0x01 | 
| #define | STOP_REMOTE_NODE 0x02 | 
| #define | ENTER_PRE_OPERATIONAL_STATE 0x80 | 
| #define | RESET_REMOTE_NODE 0x81 | 
| #define | RESET_REMOTE_COMMUNICATION 0x82 | 
| #define | OPERATIONAL (BYTE)0x05 | 
| #define | STOPPED (BYTE)0x04 | 
| #define | PRE_OPERATIONAL (BYTE)0x7F | 
| #define | INITIALISATION_NODE (BYTE)0x00 | 
| #define | INITIALISATION_COMMUNICATION (BYTE)0x10 | 
| Typedefs | |
| typedef td_s_sInitParameter | sInitParameter | 
| Enumerations | |
| enum | eBaudRate { b10kBit = 10, b20k = 20, b50k = 50, b100k = 100, b125k = 125, b250k = 250, b500k = 500, b800k = 800, b1M = 1000 } | 
| Functions | |
| BYTE | initConnection (sInitParameter *initParameter) | 
| void | closeConnection (void) | 
| Variables | |
| BYTE | bDeviceNodeId | 
| BYTE | bStateMachineState | 
Functions, vars and definitions which are canopen-lowlevel nature. such as init canopen, deinit canopen, ...
| 
 | 
| change state machine state into: pre-operational | 
| 
 | 
| state machine is in state: initialisation of the communication | 
| 
 | 
| state machine is in state: initialisation of the node | 
| 
 | 
| state machine is in state: operational | 
| 
 | 
| state machine is in state: pre-operational | 
| 
 | 
| change state machine state into: reset communication | 
| 
 | 
| change state machine state into: reset node | 
| 
 | 
| change state machine state into: operational | 
| 
 | 
| change state machine state into: stopped | 
| 
 | 
| state machine is in state: stopped | 
| 
 | 
| This struct is used for initialising the CAN controller/interface. Therefore baudrate, node-id, processor- speed, irq and IO adress are needed (the latter two are only used for PC based can-controllers) | 
| 
 | 
| eBaudRate is an enumeration which defines all possible baudrates. Of course more baudrates could be defined here, if neccessary | 
| 
 | 
| Closes connection to the CANbus. Probably only needed for PC based CAN cards | 
| 
 | 
| Sets the ID of this node, initializes CAN-interface (by calling t platform dependent setupCanInterface from canop.h. 
 | 
| 
 | 
| the node-id of this device | 
| 
 | 
| the actual state of this device: INITIALISATION, PRE_OPERATIONAL,OPERATIONAL or STOPPED | 
 1.2.17
1.2.17