CAN macro details / specs

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
Markro
Posts: 20
Joined: Sun Sep 23, 2007 12:41 am

CAN macro details / specs

Post by Markro »

Hello,

I see there is a CAN1 and a CAN2 component, there is no explanation I can find detailing what the difference between these 2 components - I can guess ... CAN2 has extended addressing support, but I would have though each component macro would have had a component macro specification defining what it is and what it does....

Following on there is no information on what the Macros are or do, again it is possible to have a bit of a guess, Is this the way to go :shock: .
I would have expected again some detail stating what the macro is designed to do, what can be passed including limits and what is returned ( and I do not just mean types, i.e. byte passed and byte returned ).

example: CAN2: "GetRxExtIDAsFull" -> Passed Index(BYTE), return value:(BYTE) ..... what is this supposed to mean ? there is no definition of the meaning of the byte, the total range of values in the return and what they mean, some other macros look like status returns, so I guess there is success, fail ( fail type 1, 2, 3.....n depending on the possible reasons for failure someone may have coded).

I can see I pass a type byte and I will get a type byte back not sure what these bytes mean, given that I guess this is something to do with an ExtendedID CAN Frame ID which is 29 bits long, what is the return byte referring to. "GetRxExtID" has idenitical definition.

This applies to virtually all of the CAN macros ( not sure about other components yet, but I guess the same ). Some are a little more easier to guess what is going on, but again assumptions are made - the source of probably a decent chunk of errors and rework in developments :roll: .

I guess that this would normally be covered by EB744 unofficial course notes, but as these notes were written before CAN2 existed, then this probably explains the missing info.

I have tried help and hitting the ? but it just takes you to a generic component macro help page not really giving any detail.

Sorry this sounds like such a whinge :oops:

Regards,

Mark

Markro
Posts: 20
Joined: Sun Sep 23, 2007 12:41 am

Re: CAN macro details / specs

Post by Markro »

Oooh I found some help, nested in the Ext Properties sub menu.

I shall have a read of this 1st.

While flicking through the tabs, did I see correctly that the Tx is default defined as Standard CAN Frame IDs and the RX is default defined as Extended CAN frames, Is this possible ?

Regards,

Mark

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: CAN macro details / specs

Post by Benj »

Hello,

CAN uses standard identifiers where as CAN2 allows for the use of extended identifiers.

This is the only difference between the two components.

The help files should contain everything you need.

Let us know if you have any further questions.

Post Reply