Updated spatz implementation

This commit is contained in:
dario
2024-06-29 17:30:11 +02:00
committed by dario
parent fe3e5d38e4
commit 27407f36bb
3 changed files with 48 additions and 18 deletions

View File

@@ -201,15 +201,6 @@ namespace sta
* @param length Buffer length
*/
void read(double * buffer, size_t length);
public:
virtual void request(uint8_t * txBuffer, size_t txLength, uint8_t * rxBuffer, size_t rxLength) = 0;
void request(uint8_t * txBuffer, size_t txLength, float * rxBuffer, size_t rxLength);
void request(uint8_t * txBuffer, size_t txLength, double * rxBuffer, size_t rxLenght);
private:
/**
* @brief Print unsigned integer in selected base.

View File

@@ -1,6 +1,8 @@
#ifndef STA_CORE_SPATZ_HPP
#define STA_CORE_SPATZ_HPP
#include <sta/mutex.hpp>
#include <sta/config.hpp>
#ifdef STA_SPATZ_ENABLED
@@ -9,8 +11,6 @@
# error "Cannot use SPATZ without debugging being enabled."
#endif // STA_DEBUGGING_ENABLED
#include <sta/mutex.hpp>
namespace sta
{
namespace spatz
@@ -51,6 +51,16 @@ namespace sta
} // namespace spatz
} // namespace sta
#else
namespace sta
{
namespace spatz
{
void init(Mutex * mutex);
} // namespace spatz
} // namespace sta
#endif // STA_SPATZ_ENABLED
#endif // STA_CORE_SPATZ_HPP