- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am programming the external programmer with CY8C4248lqi.
How to write BD_ADDR(6byte) to CY8C4248lqi with external programmer ?
I know that the Bluetooth block need this address for all individual device.
Someone comment me.
Thanks
Justin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Bluetooth Address is the public address mentioned in the GAP Settings of the BLE in the pic shown below:
In the code, open ble.c file and you can see the following line of code:
CYBLE_GAP_BD_ADDR_T cyBle_deviceAddress = {{0x06u, 0x00u, 0x00u, 0x50u, 0xA0u, 0x00u}, 0x00u };
This is used to set the structure of CYBLE_GAP_BD_ADDR_T which basically is defined as follows:
typedef struct
{
/** Bluetooth device address */
uint8 bdAddr[CYBLE_GAP_BD_ADDR_SIZE];
/** public = 0, Random = 1 */
uint8 type;
}CYBLE_GAP_BD_ADDR_T;
Hence, the bdAddr array will store the 6 Byte address in big endian format which is highlighted in bold above. This is nothing but the public address we see in the pic attached above.
You can understand more by running any code example of BLE and observing the files ble.c, ble_Stack.h etc..
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Bluetooth Address is the public address mentioned in the GAP Settings of the BLE in the pic shown below:
In the code, open ble.c file and you can see the following line of code:
CYBLE_GAP_BD_ADDR_T cyBle_deviceAddress = {{0x06u, 0x00u, 0x00u, 0x50u, 0xA0u, 0x00u}, 0x00u };
This is used to set the structure of CYBLE_GAP_BD_ADDR_T which basically is defined as follows:
typedef struct
{
/** Bluetooth device address */
uint8 bdAddr[CYBLE_GAP_BD_ADDR_SIZE];
/** public = 0, Random = 1 */
uint8 type;
}CYBLE_GAP_BD_ADDR_T;
Hence, the bdAddr array will store the 6 Byte address in big endian format which is highlighted in bold above. This is nothing but the public address we see in the pic attached above.
You can understand more by running any code example of BLE and observing the files ble.c, ble_Stack.h etc..
Regards,
Dheeraj