This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PLC - PRIME - working with MAC API



Hello,

I'm developing a PRIME application tring to use MAC API directly but I have some questions and need information/documentation about structs and functions.

I using MAC_register () API function, it uses as a parameter a variable of typedef struct MAC_EUI48_t, MAC_SNA_t defined as:

typedef struct {
    UINT16 addr_l;
    UINT16 addr_m;
    UINT16 addr_h;
    UINT16 aligner;
} MAC_EUI48_t, MAC_SNA_t;

I don't know exactly what is each field, I can imagine that addr_X is 2 bytes of the address but how must be assigned the value?, using hexadecimal notation? decimal notation? how?

And aligner field, what is? I don't know what represents, and what values could be used.

Are there any documentation about MAC API appart the pdf TI_plcSUITE_mac_api.pdf? I need more details.

Thanks in advance,

Ruben

  • Hi Ruben,

    The aligner field is not used for PRIME because the PRIME uses EUI-48 address (6-byte). You can fill out zero for the aligner field. We introduced the field to support multiple PLC standards having different size of address fields.

    Thanks.

    Wonsoo