Added Switch USB <--> CW... Defaults to USB.

Pin: 6
This commit is contained in:
2020-05-08 23:39:46 +02:00
parent e2eb1e499f
commit 558c67a456
3 changed files with 48 additions and 0 deletions

View File

@ -137,4 +137,13 @@ void FT817_NBS::setFrequency(unsigned long frequency){
convertFromValueToBcd(&data[0], frequency);
data[4] = 0x1;
sendCommand(&data[0], sizeof(data));
}
void FT817_NBS::setMode(FT817_NBS::SignalMode mode){
if(mode == SignalMode::UNKNOWN || mode == SignalMode::WFM){
return;
}
uint8_t value = (uint8_t) mode;
uint8_t data[5] = {value, 0x0, 0x0, 0x0, 0x7};
sendCommand(&data[0], sizeof(data));
}

View File

@ -30,5 +30,6 @@ public:
FT817_NBS::Frequency getFrequency();
void setFrequency(unsigned long frequency);
void toggleAB();
void setMode(FT817_NBS::SignalMode);
};
#endif