[etherlab-users] EL1252 Pdo entry not byte-align

Florian Pose fp at igh-essen.com
Tue Dec 16 16:30:40 CET 2008


On Mon, Dec 15, 2008 at 04:57:27PM +0100, Christian Gieseler wrote:
> const static ec_pdo_entry_reg_t domain1_regs[] = {
> 	...
> 	{EL1252Pos, EL1252, 0x6000,1,&off_EL1252_Kanal1_TX},
> 	{EL1252Pos, EL1252, 0x6000,2,&off_EL1252_Kanal2_TX},
> 	{}

The reason is, that you don't pass the 'bit_position' parameter of
ec_pdo_entry_reg_t. The usual offsets are in byte, so if a PDO entry
does not byte-align and you haven't given the master a possibility to
tell you the bit offset, it complains about that.

-- 
Best regards,
Florian Pose

http://etherlab.org



More information about the Etherlab-users mailing list