mirror of
https://github.com/espressif/openthread.git
synced 2026-08-24 11:19:51 +00:00
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:
committed by
Jonathan Hui
parent
646d9e2f19
commit
78462001e1
@@ -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);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user