Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

init.c File Reference

#include <init.h>
#include <canop.h>

Functions

BYTE initConnection (sInitParameter *initParameter)
void closeConnection (void)

Variables

BYTE bDeviceNodeId
BYTE bStateMachineState

Function Documentation

void closeConnection void   
 

Closes connection to the CANbus. Probably only needed for PC based CAN cards

BYTE initConnection sInitParameter   initParameter
 

Sets the ID of this node, initializes CAN-interface (by calling t platform dependent setupCanInterface from canop.h.

Parameters:
initParameter  Struct that contains all relevant data for initialising the slavelib and the CAN-interface.


Variable Documentation

BYTE bDeviceNodeId
 

the node-id of this device

BYTE bStateMachineState
 

the actual state of this device: INITIALISATION, PRE_OPERATIONAL,OPERATIONAL or STOPPED


Generated on Wed Dec 25 01:04:57 2002 for CANopen SlaveLib by doxygen1.2.17