Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: modem_ref_helper_for_v5_3_217
Diff: include/d7a_1x.h
- Revision:
- 41:6f83174ffed4
- Parent:
- 37:f5424d109c6d
- Child:
- 47:cf4519ba56d9
--- a/include/d7a_1x.h Fri Oct 12 12:37:16 2018 +0000 +++ b/include/d7a_1x.h Mon Nov 26 16:42:16 2018 +0000 @@ -14,6 +14,8 @@ #ifndef __D7A_1X_H__ #define __D7A_1X_H__ +#include "kal_codec.h" + /// @ingroup D7A_API /// @defgroup D7A_API_STR D7A API (all except APL) /// @{ @@ -237,20 +239,7 @@ // ----------------------------------------------------------------------- /// DLL compressed time format // ======================================================================= -typedef union -{ - // bit access fields - struct { - /// Mantissa - u8 mant : 5; - /// Exponent - u8 exp : 3; - } bf; - - // byte access - u8 byte; - -} d7a_ctf_t; +typedef kal_ctf_t d7a_ctf_t; // ======================================================================= // d7a_ch_header_t @@ -446,30 +435,37 @@ typedef enum { /// No error - D7A_ERROR_NO = 0, + D7A_ERROR_NO = 0, /// Resource busy - D7A_ERROR_BUSY = -1, + D7A_ERROR_BUSY = -1, /// Bad parameter - D7A_ERROR_BAD_PARAM = -2, + D7A_ERROR_BAD_PARAM = -2, /// Duty cycle limit overflow - D7A_ERROR_DUTY_CYCLE = -3, + D7A_ERROR_DUTY_CYCLE = -3, /// CCA timeout - D7A_ERROR_CCA_TO = -4, + D7A_ERROR_CCA_TO = -4, /// Security frame counter overflow - D7A_ERROR_NLS_KEY = -5, + D7A_ERROR_NLS_KEY = -5, /// TX stream underflow - D7A_ERROR_TX_UDF = -6, + D7A_ERROR_TX_UDF = -6, /// RX stream overflow - D7A_ERROR_RX_OVF = -7, + D7A_ERROR_RX_OVF = -7, /// RX checksum - D7A_ERROR_RX_CRC = -8, + D7A_ERROR_RX_CRC = -8, /// Abort - D7A_ERROR_ABORT = -9, + D7A_ERROR_ABORT = -9, /// No ACK received - D7A_ERROR_NO_ACK = -10, + D7A_ERROR_NO_ACK = -10, /// RX timeout - D7A_ERROR_RX_TO = -11, - + D7A_ERROR_RX_TO = -11, + /// Not supported band + D7A_ERROR_NOT_SUPPORTED_BAND = -12, + /// Not supported channel + D7A_ERROR_NOT_SUPPORTED_CHANNEL = -13, + /// Not supported modulation + D7A_ERROR_NOT_SUPPORTED_MODULATION = -14, + /// No channels in list + D7A_ERROR_VOID_CHANNEL_LIST = -15, } d7a_error_t;