]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blobdiff - example/collector/csf.h
Updated TI Linux Sensor To Cloud to the latest TI 15.4-Stack v2.4, now with CC13x2...
[apps/tidep0084.git] / example / collector / csf.h
index de41b98155abe7e126e853d3b41d3006e06a916e..401e019862e7ba4c52a619d6048cac417cbd6227 100644 (file)
@@ -5,7 +5,7 @@
  @brief Collector Specific Functions API
 
  Group: WCS LPC
- $Target Devices: Linux: AM335x, Embedded Devices: CC1310, CC1350$
+ $Target Devices: Linux: AM335x, Embedded Devices: CC1310, CC1350, CC1352$
 
  ******************************************************************************
  $License: BSD3 2016 $
@@ -41,7 +41,7 @@
    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  ******************************************************************************
  $Release Name: TI-15.4Stack Linux x64 SDK$
- $Release Date: Jun 28, 2017 (2.02.00.03)$
+ $Release Date: Sept 27, 2017 (2.04.00.13)$
  *****************************************************************************/
 #ifndef CSF_H
 #define CSF_H
@@ -247,6 +247,18 @@ extern void Csf_initializeTrackingClock(void);
  */
 extern void Csf_setTrackingClock(uint32_t trackingTime);
 
+/*!
+ * @brief       Initialize the broadcast clock.
+ */
+extern void Csf_initializeBroadcastClock(void);
+
+/*!
+ * @brief       set the broadcast cmd clock.
+ *
+ * @param       broadcast time - set timer this value (in msec)
+ */
+extern void Csf_setBroadcastClock(uint32_t trackingTime);
+
 /*!
  * @brief       Initialize the trickle timer clock
  */
@@ -300,6 +312,16 @@ extern uint16_t Csf_getNumDeviceListEntries(void);
  */
 extern uint16_t Csf_getDeviceShort(ApiMac_sAddrExt_t *pExtAddr);
 
+/*!
+ * @brief       Find the extended address froma given short address
+ *
+ * @param       shortAddr - short address used to find the device
+ * @param       pExtAddr - Memory location to copy the found extended address to.
+ *
+ * @return      true if found and extended address is copied to pExtAddr, false if not
+ */
+bool Csf_getDeviceExtended(uint16_t shortAddr, ApiMac_sAddrExt_t *pExtAddr);
+
 /*!
  * @brief       Find entry in device list from an address
  *
@@ -406,6 +428,18 @@ extern bool Csf_isConfigTimerActive(void);
  */
 extern bool Csf_isTrackingTimerActive(void);
 
+#ifdef PROCESS_JS
+/*!
+ * @brief       The application calls this function to indicate that a device
+ *              has reported raw sensor data.
+ *
+ *              The information will be saved.
+ *
+ * @param       pDataInd - raw inbound data
+ */
+extern void Csf_deviceRawDataUpdate(ApiMac_mcpsDataInd_t *pDataInd);
+#endif
+
 #ifdef __cplusplus
 }
 #endif