[etherlab-users] Difference between files in folders lib and master
Florian Pose
fp at igh-essen.com
Wed Apr 14 15:06:08 CEST 2010
Hi,
On Wed, Apr 14, 2010 at 08:41:54AM +0000, Juri Gerke wrote:
> there are 2 folder in ethercat master , lib and master. In both are
> some files with the same names. E.g. domain.h in lib . It seems that
> this files are a short version of the other.
in the master/ directory, the kernel code for the master module is
located. The lib/ directory contains the user-space library
implementation.
> I am using the example from /examples/user folder as a base for my own
> program with includes of files from lib folder.
You should never do this. The public API is defined in include/ecrt.h
which is the only header you should include directly.
> Till now it works fine. But I want using some functions from master
> folder. But this files need some other header files which can't be
> found by linker. Do I something wrong? Or are this functions or
> structures e.g. ec_domain with data field data_size not available for
> userspace?
Yes, this is kernel code and not usable in user-space. But you won't
have to, anyway.
--
Best regards,
Florian Pose
http://etherlab.org
More information about the Etherlab-users
mailing list