5 Replies Latest reply on Feb 3, 2016 10:06 AM by user_1377889

    void CyGetUniqueId(uint32* uniqueId)

    lizhaodongli_1448826

      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!