doc/code_debug.txt
changeset 0 4472ee7c6c3e
child 288 26015ee2c2c9
equal deleted inserted replaced
-1:000000000000 0:4472ee7c6c3e
       
     1 
       
     2 # Debug and warning codes
       
     3 -------------------------
       
     4 
       
     5 Errors are managed by the macro 
       
     6 MSG_ERR(nbr, string, value)
       
     7 
       
     8 Warnings and Informations  are managed by the macro
       
     9 MSG_WAR(nbr, string, value)
       
    10 
       
    11 
       
    12 
       
    13 The format of nbr
       
    14 ++++++++++++++++++++
       
    15 16 bits, writen in hexadecimal: 0xtfxx
       
    16 
       
    17 t   : 1    -> Error
       
    18       2    -> Warning
       
    19       3    -> Information
       
    20 
       
    21 f   : 0    -> In file sync.c
       
    22       1    ->         lifegrd.c
       
    23       2    ->         objacces.c
       
    24       3    ->         timer.c
       
    25       4    ->         nmtSlave.c
       
    26       5    ->         nmtMaster.c
       
    27       6    ->         canOpenDriver.c, interrupt.c, variahw.c (errors nb 20 .. 30)
       
    28       7    ->         initObjdict.c
       
    29       8    ->         Maps_module_utilisé.cpp
       
    30       9    ->         pdo.c
       
    31       A    ->         sdo.c
       
    32       B    ->         objacces.c
       
    33       D    ->         user's application
       
    34       E    ->         user's application
       
    35       F    ->         user's application
       
    36 
       
    37 xx  : a number
       
    38 
       
    39 
       
    40 The format of string
       
    41 ++++++++++++++++++++
       
    42 A string, ended by a space, whithout a newline
       
    43 
       
    44 The format of value
       
    45 ++++++++++++++++++++
       
    46 Unsigned 32 bits or less
       
    47 
       
    48 
       
    49