FT857D-ESP32/FT857D-ESP32.cpp
// enable or disable various CTCSS and DCS squelch options
enable or disable various CTCSS and DCS squelch options
enable or disable various CTCSS and DCS squelch options
void FT857D::squelch(String mode) {
	byte rigSql[5] = {0x00,0x00,0x00,0x00,0x00};
	rigSql[0] = CAT_MODE_USB; 
	rigSql[4] = CAT_SQL_CMD; 
if (mode == "DCS")	rigSql[0]= CAT_SQL_DCS;
if (mode == "DDC")	rigSql[0]= CAT_SQL_DCS_DECD;
if (mode == "DEN") 	rigSql[0]= CAT_SQL_DCS_ENCD;
if (mode == "TSQ") 	rigSql[0]= CAT_SQL_CTCSS;
if (mode == "TDC")	rigSql[0]=CAT_SQL_CTCSS_DECD;
if (mode == "TEN") 	rigSql[0]=CAT_SQL_CTCSS_ENCD;
if (mode == "OFF") 	rigSql[0]= CAT_SQL_OFF;
	sendCmd(rigSql,5);
	getByte();
}
void FT857D :: squelch ( String mode ) { byte rigSql [ 5 ] = { 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ; rigSql [ 0 ] = CAT_MODE_USB ; rigSql [ 4 ] = CAT_SQL_CMD ; if ( mode == " " ) rigSql [ 0 ] = CAT_SQL_DCS ; if ( mode == " " ) rigSql [ 0 ] = CAT_SQL_DCS_DECD ; if ( mode == " " ) rigSql [ 0 ] = CAT_SQL_DCS_ENCD ; if ( mode == " " ) rigSql [ 0 ] = CAT_SQL_CTCSS ; if ( mode == " " ) rigSql [ 0 ] = CAT_SQL_CTCSS_DECD ; if ( mode == " " ) rigSql [ 0 ] = CAT_SQL_CTCSS_ENCD ; if ( mode == " " ) rigSql [ 0 ] = CAT_SQL_OFF ; sendCmd ( rigSql , 5 ) ; getByte ( ) ; }
enable or disable various CTCSS and DCS squelch options
enable or disable various CTCSS and DCS squelch options
// default to USB mode // command byte