Fork of Semtech LoRaWAN stack

Fork of LoRaWAN-lib by canuck lehead

Branch:
class_b
Revision:
38:182ba91524e4
Parent:
2:14a5d6ad92d5
--- a/LoRaMacCrypto.h	Tue Aug 08 19:27:17 2017 -0400
+++ b/LoRaMacCrypto.h	Wed Aug 09 16:20:21 2017 -0400
@@ -26,7 +26,7 @@
  *
  * \author    Gregory Cristian ( Semtech )
  *
- * \author    Daniel Jäckle ( STACKFORCE )
+ * \author    Daniel Jaeckle ( STACKFORCE )
  *
  * \defgroup    LORAMAC_CRYPTO  LoRa MAC layer cryptography implementation
  *              This module covers the implementation of cryptographic functions
@@ -106,6 +106,16 @@
  */
 void LoRaMacJoinComputeSKeys( const uint8_t *key, const uint8_t *appNonce, uint16_t devNonce, uint8_t *nwkSKey, uint8_t *appSKey );
 
+/*!
+ * Computes the LoRaMAC join frame decryption
+ *
+ * \param [IN]  beaconTime      - Time of the recent received beacon
+ * \param [IN]  address         - Frame address
+ * \param [IN]  pingPeriod      - Ping period of the node
+ * \param [OUT] pingOffset      - Pseudo random ping offset
+ */
+void LoRaMacBeaconComputePingOffset( uint64_t beaconTime, uint32_t address, uint16_t pingPeriod, uint16_t *pingOffset );
+
 /*! \} defgroup LORAMAC */
 
 #endif // __LORAMAC_CRYPTO_H__