Jarda Pajskr / freemaster_lib

Dependents:   FreeMASTER_HelloWorld FreeMASTER_HelloWorld2 FreeMASTER_HelloWorld3

Fork of freemaster_lib by Jarda Pajskr

Revision:
15:24a63ac82fc3
Parent:
14:b2f3414a55d3
Child:
16:be9b137b888c
--- a/class/freemaster_class.h	Wed Sep 10 11:58:55 2014 +0000
+++ b/class/freemaster_class.h	Wed Sep 10 12:27:44 2014 +0000
@@ -44,6 +44,32 @@
  * }
  * @endcode
  */
+ 
+ /*///////////////////////////////////////////////////////////////////// */
+/* TSA "Base Types", all are implemented as a one-char strings */
+/* retrieved by PC and parsed according to the binary scheme */
+/* "111STTZZ" where TT=type[int,frac,fp,x] S=signed ZZ=size[1,2,4,8] */
+/*****************************************************************************
+* TSA types used by FMSTR_TSA_MEMBER(), FMSTR_TSA_RO_VAR(), FMSTR_TSA_RW_VAR(), FMSTR_TSA_RO_MEM() and FMSTR_TSA_RW_MEM() macros
+*
+*//*! @addtogroup fmstr_tsa_types
+* @{
+*******************************************************************************/
+#define FMSTR_TSA_UINT8   "\xE0"  \\\ Unsigned Int8 type
+#define FMSTR_TSA_UINT16  "\xE1"  \\\ Unsigned Int16 type
+#define FMSTR_TSA_UINT32  "\xE2"  \\\ Unsigned Int32 type
+#define FMSTR_TSA_UINT64  "\xE3"  \\\ Unsigned Int64 type
+#define FMSTR_TSA_SINT8   "\xF0"  \\\ Signed Int8 type
+#define FMSTR_TSA_SINT16  "\xF1"  \\\ Signed Int16 type
+#define FMSTR_TSA_SINT32  "\xF2"  \\\ Signed Int32 type
+#define FMSTR_TSA_SINT64  "\xF3"  \\\ Signed Int64 type
+#define FMSTR_TSA_UFRAC16 "\xE5"  \\\ Unsigned Fractional 16 type
+#define FMSTR_TSA_UFRAC32 "\xE6"  \\\ Unsigned Fractional 32 type
+#define FMSTR_TSA_FRAC16  "\xF5"  \\\ Signed Fractional 16 type
+#define FMSTR_TSA_FRAC32  "\xF6"  \\\ Signed Fractional 32 type
+#define FMSTR_TSA_FLOAT   "\xFA"  \\\ Float type
+#define FMSTR_TSA_DOUBLE  "\xFB"  \\\ Double type
+/*! @} End of fmstr_tsa_types */
 class Freemaster {
 
 public:
@@ -74,7 +100,7 @@
 
     /** This function can be used to detect if any Application Command is waiting to be processed by the application.
      */
-    FMSTR_APPCMD_CODE GetAppCmd(void);
+    void GetAppCmd(void);
 
     /** This function can be used to retrieve the Application Command data.
      */
@@ -97,12 +123,7 @@
     /** Register variables to TSA table
      *
      *  @param name, type, addr, info, use following macros to register variable
-     *               FMSTR_TSA_STRUCT_CFG(name) - register structure
-     *               FMSTR_TSA_MEMBER_CFG(parenttype,name,type) - register member of structure
-     *               FMSTR_TSA_RO_VAR_CFG(name,type) - register Read Only variable
-     *               FMSTR_TSA_RW_VAR_CFG(name,type) - register variable
-     *               FMSTR_TSA_RO_MEM_CFG(name,type,addr,size) - register read only of memory block
-     *               FMSTR_TSA_RW_MEM_CFG(name,type,addr,size) - register memory block
+     @ref fmstr_tsa_table "FMSTR_TSA__xxx()" constants.
      *
      *  @returns
      *    1 if there is space to register a variable,