Skip to content

Commit 56a3c15

Browse files
cvejlbofacchinm
authored andcommitted
Expose syntiant_ndp120_tiny_spi_direct_config via NDPClass::configureInferenceThreshold
1 parent 4a550c7 commit 56a3c15

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libraries/NDP/src/NDP.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,12 @@ int NDPClass::configureClock() {
477477
return (s == 0);
478478
}
479479

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+
480486
int NDPClass::checkMB() {
481487
uint32_t msg = 0;
482488
int s = syntiant_ndp120_tiny_mb_cmd(ndp, SYNTIANT_NDP120_MB_MCU_NOP, &msg);

libraries/NDP/src/NDP.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class NDPClass
8383
int getInfo();
8484
int turnOffMicrophone();
8585
int getDebugInfo();
86+
int configureInferenceThreshold(int threshold);
8687

8788
void interrupts() {
8889
enable_interrupts(true);

0 commit comments

Comments
 (0)