eive-obsw/mission/tmtc/DirectTmSinkIF.h
Robin Mueller 976235a79f
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
check busy state
2023-03-10 18:04:04 +01:00

24 lines
546 B
C++

#ifndef MISSION_TMTC_DIRECTTMSINKIF_H_
#define MISSION_TMTC_DIRECTTMSINKIF_H_
#include <cstddef>
#include "fsfw/retval.h"
class DirectTmSinkIF {
public:
virtual ~DirectTmSinkIF() = default;
/**
* @brief Implememts the functionality to write to a TM sink directly
*
* @param data Pointer to buffer holding the data to write
* @param size Number of bytes to write
*/
virtual ReturnValue_t write(const uint8_t* data, size_t size) = 0;
virtual bool isBusy() const = 0;
};
#endif /* MISSION_TMTC_DIRECTTMSINKIF_H_ */