advertising transmit interrupt

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

cross mob
Anonymous
Not applicable

Hi,

   

I'm trying to determine exactly when advertisement packets are transmitted. In the Register Technical Reference Manual I found the ADV_TX_INTR bit within BLE_BLELL_ADV_INTR, but it doesn't seem to be working. I've set the ADV_TX_EN bit within BLE_BLELL_ADV_CONFIG. Has anyone else gotten this to work?

   

Thanks,

   

Tom

0 Likes
1 Solution
Anonymous
Not applicable

First enable ADV_TX_EN  in BLE_BLELL_ADV_CONFIG:

   

CY_SET_REG32(CYREG_BLE_BLELL_ADV_CONFIG,CY_GET_REG32(CYREG_BLE_BLELL_ADV_CONFIG)|0x00000004);

   

Now start the advertisement inside CYBLE_EVT_STACK_ON using CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);

   

This should set the ADV_TX_INTR bit in BLE_BLELL_ADV_INTR once the ADV packet is transmitted

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

First enable ADV_TX_EN  in BLE_BLELL_ADV_CONFIG:

   

CY_SET_REG32(CYREG_BLE_BLELL_ADV_CONFIG,CY_GET_REG32(CYREG_BLE_BLELL_ADV_CONFIG)|0x00000004);

   

Now start the advertisement inside CYBLE_EVT_STACK_ON using CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);

   

This should set the ADV_TX_INTR bit in BLE_BLELL_ADV_INTR once the ADV packet is transmitted

0 Likes