You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
578 B
38 lines
578 B
#ifndef UDRCController_H
|
|
#define UDRCController_H
|
|
|
|
#if defined(GPIO)
|
|
|
|
#include "ExternalController.h"
|
|
|
|
enum repeater_modes {
|
|
HOTSPOT = 0,
|
|
AUTO_FM = 1,
|
|
DIGITAL_DIGITAL = 3,
|
|
FM_FM = 4,
|
|
AUTO_AUTO = 2,
|
|
};
|
|
|
|
class CUDRCController: public CExternalController {
|
|
public:
|
|
CUDRCController(enum repeater_modes mode);
|
|
|
|
bool getDisable() const;
|
|
|
|
void setRadioTransmit(bool value);
|
|
void setActive(bool value);
|
|
|
|
bool open();
|
|
void close();
|
|
|
|
private:
|
|
const enum repeater_modes m_mode;
|
|
int m_pttPin;
|
|
|
|
void switchMode(enum repeater_modes mode);
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif // UDRCController_H
|