Update LGPL header in Racal source files.

TNX to Lucian Laga, YO6PLB, for the notification.
Hamlib-1.2.15
Nate Bargmann 2011-08-21 18:16:20 -05:00
rodzic 12f96c8564
commit d379e6ca10
6 zmienionych plików z 63 dodań i 66 usunięć

Wyświetl plik

@ -2,19 +2,19 @@
* Hamlib Racal backend - RA3702 description * Hamlib Racal backend - RA3702 description
* Copyright (c) 2010 by Stephane Fillod * Copyright (c) 2010 by Stephane Fillod
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
@ -119,7 +119,7 @@ const struct rig_caps ra3702_caps = {
/* at -3dB */ /* at -3dB */
{RIG_MODE_SSB|RIG_MODE_CW|RIG_MODE_RTTY, kHz(2.7)}, {RIG_MODE_SSB|RIG_MODE_CW|RIG_MODE_RTTY, kHz(2.7)},
{RA3702_MODES, kHz(12)}, {RA3702_MODES, kHz(12)},
{RA3702_MODES, kHz(6)}, {RA3702_MODES, kHz(6)},
{RA3702_MODES, Hz(300)}, {RA3702_MODES, Hz(300)},
{RA3702_MODES, kHz(1)}, {RA3702_MODES, kHz(1)},
{RA3702_MODES, kHz(2.7)}, {RA3702_MODES, kHz(2.7)},

Wyświetl plik

@ -2,19 +2,19 @@
* Hamlib Racal backend - RA37XX main file * Hamlib Racal backend - RA37XX main file
* Copyright (c) 2004-2010 by Stephane Fillod * Copyright (c) 2004-2010 by Stephane Fillod
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
@ -389,13 +389,13 @@ int ra37xx_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
int ra37xx_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) int ra37xx_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
{ {
char cmdbuf[BUFSZ]; char cmdbuf[BUFSZ];
switch (func) { switch (func) {
case RIG_FUNC_MUTE: case RIG_FUNC_MUTE:
sprintf(cmdbuf, "MUTE%d", status ? 1 : 0); sprintf(cmdbuf, "MUTE%d", status ? 1 : 0);
break; break;
default: default:
rig_debug(RIG_DEBUG_ERR,"%s: unsupported %d\n", rig_debug(RIG_DEBUG_ERR,"%s: unsupported %d\n",
__FUNCTION__, func); __FUNCTION__, func);
return -RIG_EINVAL; return -RIG_EINVAL;
} }
@ -435,7 +435,7 @@ int ra37xx_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
{ {
char cmdbuf[BUFSZ]; char cmdbuf[BUFSZ];
int agc; int agc;
switch (level) { switch (level) {
case RIG_LEVEL_AF: case RIG_LEVEL_AF:
sprintf(cmdbuf, "AFL%d", (int)(val.f*255)); sprintf(cmdbuf, "AFL%d", (int)(val.f*255));
@ -469,7 +469,7 @@ int ra37xx_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
break; break;
default: default:
rig_debug(RIG_DEBUG_ERR,"%s: unsupported %d\n", rig_debug(RIG_DEBUG_ERR,"%s: unsupported %d\n",
__FUNCTION__, level); __FUNCTION__, level);
return -RIG_EINVAL; return -RIG_EINVAL;
} }
@ -576,7 +576,7 @@ const char* ra37xx_get_info(RIG *rig)
infobuf[res_len] = '\0'; infobuf[res_len] = '\0';
/* TODO: "QSW"? c.f. 5-43 */ /* TODO: "QSW"? c.f. 5-43 */
/* skip "ID" */ /* skip "ID" */
return infobuf+2; return infobuf+2;

Wyświetl plik

@ -2,19 +2,19 @@
* Hamlib Racal backend - RA37XX header * Hamlib Racal backend - RA37XX header
* Copyright (c) 2004-2010 by Stephane Fillod * Copyright (c) 2004-2010 by Stephane Fillod
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */

Wyświetl plik

@ -2,21 +2,20 @@
* Hamlib Racal backend - RA6790 description * Hamlib Racal backend - RA6790 description
* Copyright (c) 2004 by Stephane Fillod * Copyright (c) 2004 by Stephane Fillod
* *
* $Id: ra6790.c,v 1.1 2004-09-12 21:28:26 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */

Wyświetl plik

@ -2,21 +2,20 @@
* Hamlib Racal backend - main file * Hamlib Racal backend - main file
* Copyright (c) 2004-2010 by Stephane Fillod * Copyright (c) 2004-2010 by Stephane Fillod
* *
* $Id: racal.c,v 1.2 2009-02-23 21:53:51 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
@ -317,7 +316,7 @@ int racal_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
struct racal_priv_data *priv = (struct racal_priv_data*)rig->state.priv; struct racal_priv_data *priv = (struct racal_priv_data*)rig->state.priv;
char cmdbuf[BUFSZ]; char cmdbuf[BUFSZ];
int agc; int agc;
switch (level) { switch (level) {
case RIG_LEVEL_RF: case RIG_LEVEL_RF:
/* Manually set threshold */ /* Manually set threshold */
@ -344,7 +343,7 @@ int racal_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
break; break;
default: default:
rig_debug(RIG_DEBUG_ERR,"%s: unsupported %d\n", rig_debug(RIG_DEBUG_ERR,"%s: unsupported %d\n",
__FUNCTION__, level); __FUNCTION__, level);
return -RIG_EINVAL; return -RIG_EINVAL;
} }
@ -452,7 +451,7 @@ const char* racal_get_info(RIG *rig)
if (retval < 0) if (retval < 0)
strcpy(filterbuf,"IO error"); strcpy(filterbuf,"IO error");
sprintf(infobuf, "BITE errors: %s, Filters: %s\n", sprintf(infobuf, "BITE errors: %s, Filters: %s\n",
bitebuf+1, filterbuf); bitebuf+1, filterbuf);
return infobuf; return infobuf;

Wyświetl plik

@ -2,21 +2,20 @@
* Hamlib Racal backend - main header * Hamlib Racal backend - main header
* Copyright (c) 2004-2010 by Stephane Fillod * Copyright (c) 2004-2010 by Stephane Fillod
* *
* $Id: racal.h,v 1.1 2004-09-12 21:28:26 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */