FT857D-ESP32/FT857D-ESP32.cpp
// set radio frequency directly (as a long integer)
set radio frequency directly (as a long integer)
set radio frequency directly ( as a long integer )
void FT857D::setFreq(long freq) {
	byte rigFreq[5] = {0x00,0x00,0x00,0x00,0x00};
rigFreq[4] = CAT_FREQ_SET; 
	unsigned char tempWord[4];
	converted = to_bcd_be(tempWord, freq, 8);
	for (byte i=0; i<4; i++){
		rigFreq[i] = converted[i];
	}
sendCmd(rigFreq,5);
	getByte();
}
void FT857D :: setFreq ( long freq ) { byte rigFreq [ 5 ] = { 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ; rigFreq [ 4 ] = CAT_FREQ_SET ; unsigned char tempWord [ 4 ] ; converted = to_bcd_be ( tempWord , freq , 8 ) ; for ( byte i = 0 ; i < 4 ; i ++ ) { rigFreq [ i ] = converted [ i ] ; } sendCmd ( rigFreq , 5 ) ; getByte ( ) ; }
set radio frequency directly (as a long integer)
set radio frequency directly ( as a long integer )
// command byte