Jam-detection: Add new debug property to get the history bitmap (#1033)

This commit adds support to get history-bitmap value from
jam-detection module. It also adds a corresponding spinel property
and a get handler for the new property in `NcpBase`.

The history bitmap provides information about current state of jamming
detection module for monitoring/debugging purpose. It returns a 64-bit
value where each bit corresponds to one second interval starting with
bit 0 for the most recent interval and bit 63 for the oldest intervals
(63 sec earlier). The bit is set to 1 if the jamming detection module
observed/detected high signal level during the corresponding one second
interval.
This commit is contained in:
Abtin Keshavarzian
2016-12-01 21:27:34 -08:00
committed by Jonathan Hui
parent 646d9e2f19
commit 78462001e1
7 changed files with 85 additions and 0 deletions
+16
View File
@@ -168,6 +168,22 @@ bool otIsJamDetectionEnabled(otInstance *aInstance);
*/
bool otGetJamDetectionState(otInstance *aInstance);
/**
* Get the current history bitmap.
*
* This value provides information about current state of jamming detection
* module for monitoring/debugging purpose. It returns a 64-bit value where
* each bit corresponds to one second interval starting with bit 0 for the
* most recent interval and bit 63 for the oldest intervals (63 sec earlier).
* The bit is set to 1 if the jamming detection module observed/detected
* high signal level during the corresponding one second interval.
*
* @param[in] aInstance A pointer to an OpenThread instance.
*
* @returns The current history bitmap.
*/
uint64_t otGetJamDetectionHistoryBitmap(otInstance *aInstance);
/**
* @}
*