github.com/la5nta/wl2k-go@v0.11.8/rigcontrol/hamlib/libhamlib_consts.go (about) 1 // Copyright 2015 Martin Hebnes Pedersen (LA5NTA). All rights reserved. 2 // Use of this source code is governed by the MIT-license that can be 3 // found in the LICENSE file. 4 5 // +build cgo 6 // +build libhamlib 7 8 package hamlib 9 10 //#include <hamlib/rig.h> 11 import "C" 12 13 type Mode int 14 15 const ( 16 NoMode Mode = C.RIG_MODE_NONE 17 AM = C.RIG_MODE_AM 18 CW = C.RIG_MODE_CW 19 USB = C.RIG_MODE_USB 20 LSB = C.RIG_MODE_LSB 21 RTTY = C.RIG_MODE_RTTY 22 FM = C.RIG_MODE_FM 23 WFM = C.RIG_MODE_WFM 24 CWR = C.RIG_MODE_CWR 25 RTTYR = C.RIG_MODE_RTTYR 26 AMS = C.RIG_MODE_AMS 27 PKTLSB = C.RIG_MODE_PKTLSB 28 PKTUSB = C.RIG_MODE_PKTUSB 29 PKTFM = C.RIG_MODE_PKTFM 30 ECSSUSB = C.RIG_MODE_ECSSUSB 31 ECSSLSB = C.RIG_MODE_ECSSLSB 32 FAX = C.RIG_MODE_FAX 33 SAM = C.RIG_MODE_SAM 34 SAL = C.RIG_MODE_SAL 35 SAH = C.RIG_MODE_SAH 36 DSB = C.RIG_MODE_DSB 37 ) 38 39 type PowerState int 40 41 const ( 42 PowerOff PowerState = C.RIG_POWER_OFF 43 PowerOn = C.RIG_POWER_ON 44 PowerStandby = C.RIG_POWER_STANDBY 45 )