Driver for the SX1280 RF Transceiver
Dependents: SX1280PingPong RangignMaster RangingSlave MSNV2-Terminal_V1-6 ... more
Diff: sx1280.h
- Revision:
- 10:c1b368a5052f
- Parent:
- 9:3e5535d2cc1c
- Child:
- 11:d60df50e108f
--- a/sx1280.h Thu Aug 17 10:14:28 2017 +0000 +++ b/sx1280.h Mon Oct 09 11:59:51 2017 +0000 @@ -184,6 +184,12 @@ #define MASK_FORCE_PREAMBLELENGTH 0x8F /*! + * \brief Register for MSB Access Address (BLE) + */ +#define REG_LR_BLE_ACCESS_ADDRESS 0x09CF +#define BLE_ADVERTIZER_ACCESS_ADDRESS 0x8E89BED6 + +/*! * \brief Represents the states of the radio */ typedef enum @@ -1502,6 +1508,25 @@ uint8_t SetCrcSeed( uint8_t *seed ); /*! + * \brief Set the Access Address field of BLE packet + * + * \param [in] accessAddress The access address to be used for next BLE packet sent + * + * \see SX1280::SetBleAdvertizerAccessAddress + */ + void SetBleAccessAddress( uint32_t accessAddress ); + + /*! + * \brief Set the Access Address for Advertizer BLE packets + * + * All advertizer BLE packets must use a particular value for Access + * Address field. This method sets it. + * + * \see SX1280::SetBleAccessAddress + */ + void SetBleAdvertizerAccessAddress( void ); + + /*! * \brief Sets the seed used for the CRC calculation * * \param [in] polynomial The seed value