[Hamlib-cvs-digest] CVS: hamlib/yaesu ft847.c,1.3,1.4 ft847.h,1.2,1.3
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Frank S. <jav...@us...> - 2001-01-07 23:01:58
|
Update of /cvsroot/hamlib/hamlib/yaesu In directory usw-pr-cvs1:/tmp/cvs-serv29777 Modified Files: ft847.c ft847.h Log Message: minor cleanup Index: ft847.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/yaesu/ft847.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ft847.c 2001/01/06 06:49:40 1.3 --- ft847.c 2001/01/07 23:02:09 1.4 *************** *** 29,34 **** /* ! * TODO - Remove static stuff, see ft747 for new style. ! * - create yaesu.h for common command structure etc.. * - add mode set before freq set to avoid prior mode offset (eg: CW) * --- 29,34 ---- /* ! * TODO - Remove static stuff, see ft747 for new style [started] ! * - create yaesu.h for common command structure etc..[started] * - add mode set before freq set to avoid prior mode offset (eg: CW) * *************** *** 433,437 **** } ! memcpy(&p->p_cmd,&ncmd[cmd_index].nseq,YAESU_CMD_LENGTH); to_bcd_be(p->p_cmd,freq/10,8); /* store bcd format in in p_cmd */ --- 433,437 ---- } ! memcpy(p->p_cmd,&ncmd[cmd_index].nseq,YAESU_CMD_LENGTH); to_bcd_be(p->p_cmd,freq/10,8); /* store bcd format in in p_cmd */ Index: ft847.h =================================================================== RCS file: /cvsroot/hamlib/hamlib/yaesu/ft847.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ft847.h 2001/01/04 07:03:58 1.2 --- ft847.h 2001/01/07 23:02:09 1.3 *************** *** 189,330 **** - #if 0 - - /* - * Allow TX commands to be disabled - * - */ - - #undef TX_ENABLED - - /* - * RX Status Flags - */ - - const unsigned char RXSF_DISC_CENTER = (1<<5); - const unsigned char RXSF_CTCSS_DCS_CODE = (1<<6); - const unsigned char RXSF_SQUELCH_STATUS = (1<<7); - const unsigned char RXSF_SMETER_MASK = 0x1f; /* bottom 5 bits */ - - /* - * TX Status Flags - */ - - const unsigned char TXSF_PTT_STATUS = (1<<7); - const unsigned char TXSF_POALC_METER_MASK = 0x1f; /* bottom 5 bits */ - - - - /* - * MODES for READING and SETTING - */ - - #define MODE_LSB 0x00 - #define MODE_USB 0x01 - #define MODE_CW 0x02 - #define MODE_CWR 0x03 - #define MODE_AM 0x04 - #define MODE_FM 0x08 - #define MODE_CWN 0x82 - #define MODE_CWNR 0x83 - #define MODE_AMN 0x84 - #define MODE_FMN 0x88 - - /* - * Modes for setting CTCSS/DCS Mode - * - */ - - const unsigned char DCS_ON = 0x0a; - const unsigned char CTCSS_ENC_DEC_ON = 0x2a; - const unsigned char CTCSS_ENC_ON = 0x4a; - const unsigned char CTCSS_ENC_DEC_OFF = 0x2a; - - - - - /* - * Raw CAT command set - * - */ - - - - void cmd_set_cat_on(int fd); - void cmd_set_cat_off(int fd); - - void cmd_set_ptt_on(int fd); - void cmd_set_ptt_off(int fd); - - void cmd_set_sat_on(int fd); - void cmd_set_sat_off(int fd); - - void cmd_set_freq_main_vfo(int fd, unsigned char d1, unsigned char d2, - unsigned char d3, unsigned char d4); - - void cmd_set_freq_sat_rx_vfo(int fd, unsigned char d1, unsigned char d2, - unsigned char d3, unsigned char d4); - - void cmd_set_freq_sat_tx_vfo(int fd, unsigned char d1, unsigned char d2, - unsigned char d3, unsigned char d4); - - void cmd_set_opmode_main_vfo(int fd, unsigned char d1); - void cmd_set_opmode_sat_rx_vfo(int fd, unsigned char d1); - void cmd_set_opmode_sat_tx_vfo(int fd, unsigned char d1); - - void cmd_set_ctcss_dcs_main_vfo(int fd, unsigned char d1); - void cmd_set_ctcss_dcs_sat_rx_vfo(int fd, unsigned char d1); - void cmd_set_ctcss_dcs_sat_tx_vfo(int fd, unsigned char d1); - - void cmd_set_ctcss_freq_main_vfo(int fd, unsigned char d1); - void cmd_set_ctcss_freq_sat_rx_vfo(int fd, unsigned char d1); - void cmd_set_ctcss_freq_sat_tx_vfo(int fd, unsigned char d1); - - void cmd_set_dcs_code_main_vfo(int fd, unsigned char d1, unsigned char d2); - void cmd_set_dcs_code_sat_rx_vfo(int fd, unsigned char d1, unsigned char d2); - void cmd_set_dcs_code_sat_tx_vfo(int fd, unsigned char d1, unsigned char d2); - - void cmd_set_repeater_shift_minus(int fd); - void cmd_set_repeater_shift_plus(int fd); - void cmd_set_repeater_shift_simplex(int fd); - - void cmd_set_repeater_offset(int fd, unsigned char d1, unsigned char d2, - unsigned char d3, unsigned char d4); - - unsigned char cmd_get_rx_status(int fd); - unsigned char cmd_get_tx_status(int fd); - - /* - * Get frequency and mode info - * - */ - - - long int cmd_get_freq_mode_status_main_vfo(int fd, unsigned char *mode); - long int cmd_get_freq_mode_status_sat_rx_vfo(int fd, unsigned char *mode); - long int cmd_get_freq_mode_status_sat_tx_vfo(int fd, unsigned char *mode); - - - /* - * Set frequency in Hz and mode - * - */ - - void cmd_set_freq_main_vfo_hz(int fd,long int freq, unsigned char mode); - void cmd_set_freq_sat_rx_vfo_hz(int fd,long int freq, unsigned char mode); - void cmd_set_freq_sat_tx_vfo_hz(int fd,long int freq, unsigned char mode); - - - /* - * Set Repeater offset in Hz. - * - */ - - void cmd_set_repeater_offset_hz(int fd,long int freq); - - #endif /* 0 */ - - - #endif /* _FT847_H */ --- 189,192 ---- |