Skip to content

Commit b59f590

Browse files
committed
added an access method for the TMF882X SDK context struct. Allows users to access the SDK directly if needed
1 parent 0ae66bf commit b59f590

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/qwiic_tmf882x.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,31 @@ class QwDevTMF882X
434434
// --------- -----------------------------
435435
// tofSpad The config values for the on device SPAD settings
436436
// retval True on success, false on error
437+
437438
bool setSPADConfig(struct tmf882x_mode_app_spad_config &tofSpad);
438439

440+
//////////////////////////////////////////////////////////////////////////////////
441+
// getTMF882XContext()
442+
//
443+
// Returns the context structure used by this library when accessing the
444+
// underlying TMF882X SDK.
445+
//
446+
// With this structure, users of this library can make direct calls to
447+
// the interface functions of the TMF882X SDK.
448+
//
449+
// Note:
450+
// Calling the TMF882X SDK functions directly could impact the operation of
451+
// this library. Use this option with caution.
452+
//
453+
// Parameter Description
454+
// --------- -----------------------------
455+
// retval The TMF882X Context used by this library.
456+
457+
tmf882x_tof& getTMF882XContext(void)
458+
{
459+
return _TOF;
460+
}
461+
439462
//////////////////////////////////////////////////////////////////////////////////
440463
// setDebug()
441464
//

0 commit comments

Comments
 (0)