2021-11-21 18:07:05 +01:00
|
|
|
#ifndef LINUX_OBC_TXRATESETTERIF_H_
|
|
|
|
#define LINUX_OBC_TXRATESETTERIF_H_
|
|
|
|
|
|
|
|
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
|
|
|
|
|
2022-01-24 07:43:14 +01:00
|
|
|
enum BitRates : uint32_t {
|
|
|
|
RATE_2000KBPS,
|
|
|
|
RATE_1000KBPS,
|
|
|
|
RATE_500KBPS,
|
|
|
|
RATE_400KBPS,
|
|
|
|
RATE_200KBPS,
|
|
|
|
RATE_100KBPS
|
|
|
|
};
|
2021-11-21 18:07:05 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Abstract class for objects implementing the functionality to switch the
|
|
|
|
* downlink bit rate.
|
|
|
|
*
|
|
|
|
* @author J. Meier
|
|
|
|
*/
|
|
|
|
class TxRateSetterIF {
|
2022-01-17 15:58:27 +01:00
|
|
|
public:
|
|
|
|
TxRateSetterIF(){};
|
|
|
|
virtual ~TxRateSetterIF(){};
|
2021-11-21 18:07:05 +01:00
|
|
|
|
2022-01-17 15:58:27 +01:00
|
|
|
virtual ReturnValue_t setRate(BitRates bitRate) = 0;
|
2021-11-21 18:07:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* LINUX_OBC_TXRATESETTERIF_H_ */
|