void CyGetUniqueId(uint32* uniqueId)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I want to use the UniqueId as the bluetooth mac address.
The function -- CyGetUniqueId() : 
void CyGetUniqueId(uint32* uniqueId)
{
#if(CY_PSOC4)
uniqueId[0u] = (uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT0 );
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT1 ) << 8u);
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_LOT2 ) << 16u);
uniqueId[0u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_WAFER ) << 24u);

uniqueId[1u] = (uint32)(* (reg8 *) CYREG_SFLASH_DIE_X );
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_Y ) << 8u);
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_SORT ) << 16u);
uniqueId[1u] |= ((uint32)(* (reg8 *) CYREG_SFLASH_DIE_MINOR ) << 24u);
#else
}

I can divide 2 numbers into 8 numbers, 4 numbers from the uniqueId[0], and 4 numbers from the uniqueId[1].
I want to know which numbers can be used to as mac address.
What do they mean:
CYREG_SFLASH_DIE_LOT0 
CYREG_SFLASH_DIE_LOT1 
CYREG_SFLASH_DIE_LOT2 
CYREG_SFLASH_DIE_WAFER 
CYREG_SFLASH_DIE_X 
CYREG_SFLASH_DIE_Y
CYREG_SFLASH_DIE_SORT 
CYREG_SFLASH_DIE_MINOR 


THANK YOU!

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You will need all 64 bits as the unique ID. The Lots, wafer and x-y positions identify each single chip.

   

DIE_SORT and MINOR characterize the device and the revision afaik. When needing a 48 bit mac address you might shorten those, but I would suggest to use all 64 bits.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

thank you.I want to use six numbers(the  Lots, wafer and x-y) as the Bluetooth mac address, could I? Can it be the Unique ID of my BT module?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Your ID could be repeated between PSoC BLE and PRoC BLE as far as I understand.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Oh my GOD

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Not too much, just call me "Bob"

   

:-))

   

 

   

Bob

0 Likes