Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

Hamlib error codes Error code definition that can be returned by the Hamlib functions. Unless stated otherwise, Hamlib functions return the negative value of rig_errcode_e definitions in case of error, or 0 when successful.

Enumerator:
RIG_OK  No error, operation completed sucessfully
RIG_EINVAL  invalid parameter
RIG_ECONF  invalid configuration (serial,..)
RIG_ENOMEM  memory shortage
RIG_ENIMPL  function not implemented, but will be
RIG_ETIMEOUT  communication timed out
RIG_EIO  IO error, including open failed
RIG_EINTERNAL  Internal Hamlib error, huh!
RIG_EPROTO  Protocol error
RIG_ERJCTED  Command rejected by the rig
RIG_ETRUNC  Command performed, but arg truncated
RIG_ENAVAIL  function not available
RIG_ENTARGET  VFO not targetable
RIG_BUSERROR  Error talking on the bus
RIG_BUSBUSY  Collision on the bus
RIG_EARG  NULL RIG handle or any invalid pointer parameter in get arg
RIG_EVFO  Invalid VFO
RIG_EDOM  Argument out of domain of func

Definition at line 85 of file rig.h.

                   {
      RIG_OK=0,         /*!< No error, operation completed sucessfully */
      RIG_EINVAL,       /*!< invalid parameter */
      RIG_ECONF,        /*!< invalid configuration (serial,..) */
      RIG_ENOMEM,       /*!< memory shortage */
      RIG_ENIMPL,       /*!< function not implemented, but will be */
      RIG_ETIMEOUT,           /*!< communication timed out */
      RIG_EIO,          /*!< IO error, including open failed */
      RIG_EINTERNAL,          /*!< Internal Hamlib error, huh! */
      RIG_EPROTO,       /*!< Protocol error */
      RIG_ERJCTED,            /*!< Command rejected by the rig */
      RIG_ETRUNC,       /*!< Command performed, but arg truncated */
      RIG_ENAVAIL,            /*!< function not available */
      RIG_ENTARGET,           /*!< VFO not targetable */
      RIG_BUSERROR,           /*!< Error talking on the bus */
      RIG_BUSBUSY,            /*!< Collision on the bus */
      RIG_EARG,         /*!< NULL RIG handle or any invalid pointer parameter in get arg */
      RIG_EVFO,         /*!< Invalid VFO */
      RIG_EDOM          /*!< Argument out of domain of func */
};


Generated by  Doxygen 1.6.0   Back to index