We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a550c7 commit 56a3c15Copy full SHA for 56a3c15
libraries/NDP/src/NDP.cpp
@@ -477,6 +477,12 @@ int NDPClass::configureClock() {
477
return (s == 0);
478
}
479
480
+int NDPClass::configureInferenceThreshold(int threshold_bytes)
481
+{
482
+ int s = syntiant_ndp120_tiny_spi_direct_config(ndp, threshold_bytes);
483
+ return s;
484
+}
485
+
486
int NDPClass::checkMB() {
487
uint32_t msg = 0;
488
int s = syntiant_ndp120_tiny_mb_cmd(ndp, SYNTIANT_NDP120_MB_MCU_NOP, &msg);
libraries/NDP/src/NDP.h
@@ -83,6 +83,7 @@ class NDPClass
83
int getInfo();
84
int turnOffMicrophone();
85
int getDebugInfo();
86
+ int configureInferenceThreshold(int threshold);
87
88
void interrupts() {
89
enable_interrupts(true);
0 commit comments