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.

[参考译文] CC2640R2F:有关 deviceInfo 中 bleAddr 和 macaddr 的问题

Guru**** 2387830 points
Other Parts Discussed in Thread: CC2340R5, CC2640R2F
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1336182/cc2640r2f-questions-about-bleaddr-and-macaddr-in-deviceinfo

器件型号:CC2640R2F
主题中讨论的其他器件:CC2340R5

在 hw_fcfg.h 中、下面显示了一个结构

    // Device information
    struct {    // [80]: length 48B
        // 64b device-unique UUID (non-sequential across parts)
        uint8_t uuid[8];
        // 48b device-unique BLE address
        uint8_t bleAddr[6];
        // Padding
        uint8_t res0[2];
        // 64b device-unique IEEE MAC address
        uint8_t macAddr[8];
        // 128b die identifier (lot #, wafer #, die X/Y, date, etc)
        uint8_t dieId[16];
        // Padding (previously devId but this HW-defined value is now readable through an MMR)
        uint32_t res1;
        // 32b PARTID (Part/Variant/majRev/minorRev)
        union {
            uint32_t val32;
            struct {
                // Random bit pattern to uniquely identify part (with devId)
                uint32_t part : 16;
                // Random bit pattern to uniquely identify package/memory variant
                uint32_t variant : 8;
                // Minor revision for orderable part (starts at 0)
                uint32_t minorRev : 4;
                // Major revision for orderable part: PCB/SW change (starts at 1)
                uint32_t majorRev : 3;
                // 0: partId not yet valid; 1: partId valid
                uint32_t partIdValid : 1;
            };
        } partId;
    } deviceInfo;

其中包括元素 bleAddr 和 macaddr、

1.如何阅读

2.是否可以修改

3.是否有任何使用它们的样本