Q1: I want to find advertisement flag when BLE makes an advertisement pulse. I want to track each advertisement packet. Is this possible ?
A1: There is no specific flag that shows active advertising. Instead, it is possible to check starting and stopping of the advertising state (the link connection state) by monitoring the TX and RX active flag.
Q2: Can I use GAPM_MASK_ADV_START_IND_EN to track BLE advertisements?
A2: This enables the start advertising indication when the application sends the start_advertising command. It is common to use gamp_cmp_evt to indicate that advertising has starting.
However, this does not mean there is an advertising indication flag when the device is currently advertising and only indicates the start of advertising rather than active advertising.