aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmisc/sys_defs.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-03-14 07:38:02 +1000
committerinmarket <andrewh@inmarket.com.au>2014-03-14 07:38:02 +1000
commit6f54bde79c553301a35535a0a71a4a09b181abfa (patch)
tree1408ad80459cd09da47960b4905d50195916639d /src/gmisc/sys_defs.h
parent6d372f13528f44919ec193d03248d55a53484968 (diff)
parentea5a1b849df6e5085a92957ad387f9e653674415 (diff)
downloaduGFX-6f54bde79c553301a35535a0a71a4a09b181abfa.tar.gz
uGFX-6f54bde79c553301a35535a0a71a4a09b181abfa.tar.bz2
uGFX-6f54bde79c553301a35535a0a71a4a09b181abfa.zip
Merge branch 'master' into freertos
Diffstat (limited to 'src/gmisc/sys_defs.h')
-rw-r--r--src/gmisc/sys_defs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gmisc/sys_defs.h b/src/gmisc/sys_defs.h
index cbb0111b..41a9bca6 100644
--- a/src/gmisc/sys_defs.h
+++ b/src/gmisc/sys_defs.h
@@ -40,6 +40,16 @@ typedef enum ArrayDataFormat_e {
} ArrayDataFormat;
/**
+ * @brief Is the sample data format a "signed" data format?
+ */
+#define gfxSampleFormatIsSigned(fmt) ((fmt) & 1)
+
+/**
+ * @brief How many bits are in the sample data format
+ */
+#define gfxSampleFormatBits(fmt) ((fmt) & ~1)
+
+/**
* @brief The type for a fixed point type.
* @details The top 16 bits are the integer component, the bottom 16 bits are the real component.
*/