]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
doc: Change YAML field Status to simple string
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 1 Dec 2014 23:18:13 +0000 (00:18 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 1 Dec 2014 23:18:13 +0000 (00:18 +0100)
23 files changed:
rpp/blocks/scripts/doc_parse.py
rpp/blocks/scripts/schema.yaml
rpp/blocks/sfunction_ain.c
rpp/blocks/sfunction_aout.c
rpp/blocks/sfunction_canreceive.c
rpp/blocks/sfunction_cansetup.c
rpp/blocks/sfunction_cantransmit.c
rpp/blocks/sfunction_din.c
rpp/blocks/sfunction_dinc.c
rpp/blocks/sfunction_frayconfig.c
rpp/blocks/sfunction_frayreceive.c
rpp/blocks/sfunction_fraysbc.c
rpp/blocks/sfunction_fraytransmit.c
rpp/blocks/sfunction_hbr.c
rpp/blocks/sfunction_irc.c
rpp/blocks/sfunction_lout.c
rpp/blocks/sfunction_mout.c
rpp/blocks/sfunction_scic.c
rpp/blocks/sfunction_scip.c
rpp/blocks/sfunction_scir.c
rpp/blocks/sfunction_scis.c
rpp/blocks/sfunction_sdrw.c
rpp/blocks/sfunction_tror.c

index 266060208a3381d34f6badd1ecfda7f21c969ab9..6c3b5177920a7f6ee1206c369dc1639463370dd6 100755 (executable)
@@ -57,44 +57,6 @@ def print_latex_desc(doc):
 
     print_markdown_as('latex', doc['Description'])
 
-    print("\n\\textbf{Status:}")
-    print("\\begin{multicols}{3}")
-    if doc['Status']['Tested']:
-        print("\\begin{compactitem}")
-        print("\\item \\textbf{Tested}:")
-        print(" \\begin{compactitem}")
-        print("\n".join(["\\item %s" % i.replace('_', '\\_') for i in doc['Status']['Tested']]))
-        print(" \\end{compactitem}")
-        print("\\end{compactitem}")
-    else:
-        print("\\ ")
-
-    print("\\vfill\\columnbreak")
-
-    if doc['Status']['Untested']:
-        print("\\begin{compactitem}")
-        print("\\item \\textbf{Untested}:")
-        print(" \\begin{compactitem}")
-        print("\n".join(["\\item %s" % i.replace('_', '\\_') for i in doc['Status']['Untested']]))
-        print(" \\end{compactitem}")
-        print("\\end{compactitem}")
-    else:
-        print("\\ ")
-
-    print("\\vfill\\columnbreak")
-
-    if doc['Status']['Not working']:
-        print("\\begin{compactitem}")
-        print("\\item \\textbf{Not working}:")
-        print(" \\begin{compactitem}")
-        print("\n".join(["\\item %s" % i.replace('_', '\\_') for i in doc['Status']['Not working']]))
-        print(" \\end{compactitem}")
-        print("\\end{compactitem}")
-    else:
-        print("\\ ")
-
-    print("\\end{multicols}\n")
-
     if doc.get('RPP API functions used', None) is not None:
         print("\\textbf{RPP API functions used:}")
         print("\\begin{compactitem}")
@@ -142,11 +104,7 @@ def process_file(f):
         global last_category
         if last_category == doc['Category']: doc['Category']=''
         doc['Header'] = doc['Header'].replace('_', '\\_')
-        if   doc['Status']['Not working']: doc['ShortStatus'] = '$\\alpha$'
-        elif doc['Status']['Untested']:    doc['ShortStatus'] = '$\\beta$'
-        elif not doc['Status']['Tested']:  doc['ShortStatus'] = '$\\beta$'
-        else:                              doc['ShortStatus'] = 'Stable'
-        print(Template("$Category & $Name & $ShortStatus & $Mnemonic & \\texttt{$Header} \\\\").substitute(doc))
+        print(Template("$Category & $Name & $Status & $Mnemonic & \\texttt{$Header} \\\\").substitute(doc))
         if doc['Category']:
             last_category = doc['Category']
     if args.masktype:
index afbc723ae6fb203f42e712615a667902f070340b..5dd84a38f87c43c2a82dea430f3c715d91d951de 100644 (file)
@@ -20,17 +20,12 @@ required:
   Parameters: *iodef
   Description: //str            # Only for desciprion in block properties
   Help: //str                   # For help window and printed documentation
-  Status:
-    type: //rec
-    required:
-      Tested: &strarray
-        type: //any
-        of:
-          - //nil
-          - type: //arr
-            contents: //str
-      Untested: *strarray
-      Not working: *strarray
+  Status: //str                 # Alpha / Beta / Stable / ...
 optional:
-  RPP API functions used: *strarray
+  RPP API functions used: &strarray
+    type: //any
+    of:
+      - //nil
+      - type: //arr
+        contents: //str
   Relevant demos: *strarray
index 519fc324cfaf470198db457f2d6f9e797dcbf1ae..2ea4b83abe49ff718327af30bbeabce0be95070a 100644 (file)
@@ -58,13 +58,7 @@ Help: |
   always be 0. Because the ErrFlag should never set, once set the
   following steps will never clear it back.
 
-Status:
-  Tested:
-    - Changing the pin.
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
   - rpp_adc_update()
index 1dc54b558de1cf258b636209a17c30d98de695dc..7aba23c662abd5f4248634ecd61efe36ca12703a 100644 (file)
@@ -69,14 +69,7 @@ Help: |
   Because of this, the outputs of the DACs are initialized on the first step of the model and not on 
   the model initialization.
 
-Status:
-  Tested:
-    - Changing the pin, voltage/value flag.
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
-    - Initializing DACs on model's initialization.
+Status: Stable
 
 RPP API functions used:
     - rpp_dac_setup()
index 64ef17d702a8e67ce0534280709bb267b5ef5e56..6894536423a9b676592bb2dfa663f468605a6176 100644 (file)
@@ -106,20 +106,7 @@ Help: |
 
   In order to use this block, there must be a `CAN Configure` block in the model.
 
-Status:
-  Tested:
-    - Reception of messages with a configured ID.
-    - Rejection of messages with other ID then the configured one. FIXME
-    - Reception of messages with a set of IDs specified by a ID and mask.
-    - Reception of messages with Standard ID type, rejection of the messages with Extended ID type and vice versa.
-    - Reception of messages with both messages ID types.
-    - Automatic generation of mailboxes numbers with combination with manual specification, duplicate mailbox numbers detection.
-    - Function call triggering when new message is accepted
-  Untested:
-    - Handling of error states on CAN bus
-  Not working:
-    - Receiving at baudrate higher than 700kb
-    - External mode - throwing syntax error during compilation
+Status: Stable
 
 RPP API functions used:
     - rpp_can_read()
index 7ef6290dd2731603860478f0f2cef4cdd0de8675..935b3e73cf296ee6ee66a78b5b837ebb2250dbb0 100644 (file)
@@ -46,13 +46,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Configuring CAN1, CAN2 and CAN3
-  Untested:
-  Not working:
-    - Receiving at baudrate higher than 700kb
-    - External mode - throwing syntax error during compilation
+Status: Stable
 
 RPP API functions used:
     - rpp_can_init()
index 53325ed5e176d51e55b2fa5a1491d0bbf0eda6d2..a4152aae5aeda62ec7e9d1537fc327d00b70192f 100644 (file)
@@ -81,18 +81,7 @@ Help: |
 
   In order to use this block, there must be a `CAN Configure` block in the model.
 
-Status:
-  Tested:
-    - Transmission of the message with configured ID
-    - Automatic generation of mailboxes numbers in combination with
-      manual specification in other blocks. Colliding mailbox numbers
-      are correctly handled.
-    - Input message data type recognition
-    - When unsupported data type is connected to the Msg input port, Simulink generates a reasonable error message
-  Untested:
-    - Handling of error states on CAN bus
-  Not working:
-    - External mode - throwing syntax error during compilation
+Status: Stable
 
 RPP API functions used:
     - rpp_can_write()
index 2679825d32d033d0dcf44e0c43dcde78efbb3087..8a0a90c03d0eb90dc1a25df2a8d02ed76d9463a1 100644 (file)
@@ -62,14 +62,7 @@ Help: |
   flag because of this. In case an errors occurs the return value will always be LOW (0). Because the
   ErrFlag should never set, once set the following steps will never clear it back.
 
-Status:
-  Tested:
-    - Changing the pin.
-    - Compilation and general use.
-    - Using variable threshold.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_din_setup()
index 6c7bd99fa249c77e656eb9c7e7c72c2c3d5e8f3c..0096aceb073ec99c97daa741c85362139c12a2df 100644 (file)
@@ -44,13 +44,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Changing reference voltage.
-    - Compilation and general use.
-  Untested:
-    - Using more than one block in a model.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_din_ref()
index 34a59405ea642d9df86428d8b512ae2ac5fe6309..f774df80f40803083842a778f593f85ae220aa0d 100644 (file)
@@ -95,11 +95,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-  Untested:
-  Not working:
-    - Unknown status
+Status: Beta
 
 RPP API functions used:
 
index 4917d3fc517ac0852dde20e0e13a645cac90ada5..81d7f4b222cc06764ec82ca90f81bc63e8a5d6ba 100644 (file)
@@ -52,11 +52,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-  Untested:
-  Not working:
-    - Unknown status
+Status: Beta
 
 RPP API functions used:
 
index 0ed95f1cc2c3c8390231a9d5164fb9028cb762e9..2dd0d8341db58bf2adfd2e1d0de7863b2ff4705d 100644 (file)
@@ -41,12 +41,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-  Untested:
-  Not working:
-    - Unknown status
-    - Not in library
+Status: Beta
 
 RPP API functions used:
 
index 6ba0a34a0d9de9da14696bf6c48860f9e7ae4471..b7525333566dc7068c0dfb073e6a0a6d3eaf51a9 100644 (file)
@@ -50,11 +50,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-  Untested:
-  Not working:
-    - Unknown status
+Status: Beta
 
 RPP API functions used:
 
index e154ededa3d32ff21b711f1b87d47d6151806938..e19889e69fe560555553c42560eb650dd9b06c47 100644 (file)
@@ -51,12 +51,7 @@ Help: |
   (~18kHz). A future improvement could include a parameter to set the frequency. Because the ErrFlag 
   should never set, once set the following steps will never clear it back.
 
-Status:
-  Tested:
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_hbr_enable()
index 63e27f112f05b5df46a70602be7926dc5198d6e3..3b305ede1b077032066680ac57f8e93dd9f6e8ee 100644 (file)
@@ -47,12 +47,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_irc_enable()
index f853b2cbac8649b0c94eb4453ea8da4ff6888e5c..ef5bf7a054383597ddf81102a545aff31812f91f 100644 (file)
@@ -55,13 +55,7 @@ Help: |
   once set the following steps will never clear it back. `rpp_lout_update()` is called on each 
   block, which is not the most efficient but guaranties consistent behavior.
 
-Status:
-  Tested:
-    - Changing the pin.
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_lout_set()
index 5587d4d26ab3ff8413299d8b5fdd25a5a38dd420..8ffbbbba9ef5f07eee95babc27996ef1a6aed401 100644 (file)
@@ -49,13 +49,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Changing the pin.
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_mout_set()
index 87710666b113e9f430817c63d0645b0c36dadd18..f4cf7f181633ee49279190425f5be6d3ad1f8c06 100644 (file)
@@ -43,12 +43,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Changing baud rate.
-    - Compilation and general use.
-  Untested:
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_sci_setup()
index 9dee772d59cb7d6d5bd73d92882664a06bb2dda7..c43862f010f8f684bd8fc315d31d9a819b534157 100644 (file)
@@ -52,13 +52,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Sending data.
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_sci_printf()
index 9416540ee9d22259dfc259fa21e8b1a8066ab662..46260a93c38f21c86d44a6895f68c542053bf7f3 100644 (file)
@@ -46,13 +46,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Receiving data.
-    - Compilation and general use.
-    - Faulty situation for the ErrFlag to set.
-  Untested:
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_sci_read_nb()
index ec978f7814ba932b0789a6a0228d547b3eae6eac..58fd2849681ced1cb89c013f06360a6b1b0ae749 100644 (file)
@@ -45,13 +45,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Sending data.
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Stable
 
 RPP API functions used:
     - rpp_sci_write_nb()
index 88ab633b8a3818a1061e013997d22631d3da9d32..c38d27245743a5cd576e33d0c094ad662177dcb9 100644 (file)
@@ -56,13 +56,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Logging data.
-    - Compilation and general use.
-  Untested:
-    - Faulty situation for the ErrFlag to set.
-  Not working:
+Status: Beta
 
 RPP API functions used:
     - rpp_sdr_printf()
index 3b473e9778a15da32638aa221c5aa0b7215bcad8..30c78c9c177ae12af3e905c2d7981d0a29e48316 100644 (file)
@@ -41,12 +41,7 @@ Description: &desc |
 
 Help: *desc
 
-Status:
-  Tested:
-    - Overun detection.
-    - Compilation.
-  Untested:
-  Not working:
+Status: Stable
 
 RPP API functions used: