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.
Diff: include/d7a_1x.h
- Revision:
- 56:67e3d9608403
- Parent:
- 47:cf4519ba56d9
--- a/include/d7a_1x.h Mon Jan 25 11:13:27 2021 +0100
+++ b/include/d7a_1x.h Wed Jan 27 14:45:28 2021 +0000
@@ -14,6 +14,7 @@
#ifndef __D7A_1X_H__
#define __D7A_1X_H__
+#include "hal_types.h"
#include "kal_codec.h"
/// @ingroup D7A_API
@@ -178,6 +179,9 @@
/// Decode from CTF to unit
#define D7A_CTF_DECODE(ctf) D7A_CTF_D((ctf).bf.exp,(ctf).bf.mant)
+/// Initializer for constants and variables
+#define D7A_CTF(v) (d7a_ctf_t){ .byte = D7A_CTF_ENCODE(v) }
+
// =======================================================================
// d7a_addressee_ctrl_t
// -----------------------------------------------------------------------
@@ -501,6 +505,12 @@
D7A_ERROR_NOT_SUPPORTED_MODULATION = -14,
/// No channels in list
D7A_ERROR_VOID_CHANNEL_LIST = -15,
+ /// Not supported packet length
+ D7A_ERROR_NOT_SUPPORTED_LEN = -16,
+ /// Parameter overflow
+ D7A_ERROR_PARAM_OVF = -17,
+ /// Qty
+ D7A_ERROR_QTY = MAX_S16,
} d7a_error_t;