Bluetooth: controller: ULL: Add CTE to per. adv. PDU
Add CTE to extended header of periodic advertising PDU. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
parent
4b600fcf9a
commit
f1ef3087d9
1 changed files with 16 additions and 2 deletions
|
@ -224,7 +224,7 @@ struct pdu_adv_ext_hdr {
|
|||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
uint8_t adv_addr:1;
|
||||
uint8_t tgt_addr:1;
|
||||
uint8_t rfu0:1;
|
||||
uint8_t cte_info:1;
|
||||
uint8_t adi:1;
|
||||
uint8_t aux_ptr:1;
|
||||
uint8_t sync_info:1;
|
||||
|
@ -236,7 +236,7 @@ struct pdu_adv_ext_hdr {
|
|||
uint8_t sync_info:1;
|
||||
uint8_t aux_ptr:1;
|
||||
uint8_t adi:1;
|
||||
uint8_t rfu0:1;
|
||||
uint8_t cte_info:1;
|
||||
uint8_t tgt_addr:1;
|
||||
uint8_t adv_addr:1;
|
||||
#else
|
||||
|
@ -313,6 +313,20 @@ enum pdu_adv_aux_phy {
|
|||
EXT_ADV_AUX_PHY_LE_COD = 0x02,
|
||||
};
|
||||
|
||||
struct pdu_cte_info {
|
||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
uint8_t time:5;
|
||||
uint8_t rfu:1;
|
||||
uint8_t type:2;
|
||||
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
uint8_t type:2;
|
||||
uint8_t rfu:1;
|
||||
uint8_t time:5;
|
||||
#else
|
||||
#error "Unsupported endianness"
|
||||
#endif
|
||||
};
|
||||
|
||||
struct pdu_adv_sync_info {
|
||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
uint16_t offs:13;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue