From d6b3288c9592d923d1019ac070bdd05dade66ebd Mon Sep 17 00:00:00 2001 From: Crsarmv7l <85343771+Crsarmv7l@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:02:53 -0400 Subject: [PATCH] Expose method --- src/protocols/PhysicalLayer/PhysicalLayer.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.h b/src/protocols/PhysicalLayer/PhysicalLayer.h index f1b2eb0d..f0995962 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.h +++ b/src/protocols/PhysicalLayer/PhysicalLayer.h @@ -447,6 +447,15 @@ class PhysicalLayer { \returns Byte from direct mode buffer. */ uint8_t read(bool drop = true); + + /*! + \brief Get the direct mode buffer. + \param drop Drop synchronization on read - next reading will require waiting for the sync word again. + Defaults to true. + \returns direct mode buffer. + */ + + uint8_t getDirectBuffer(bool drop = true); #endif /*!