objdictgen/config/DS-418.prf
author lbessard
Mon, 15 May 2006 08:02:47 +0200
changeset 5 e4365e7d47f0
parent 0 4472ee7c6c3e
child 69 c5495b101f57
permissions -rw-r--r--
Bug on number in hexa computed by gen_cfile corrected
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
global Mapping, AddMenuEntries
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
"""
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
MappingDictionary for DS-418
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
"""
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
Mapping = {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
    0x0080 : {"name" : "BatteryPar", "struct" : array, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
                [{"name" : "Highest sub-index supported", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
                 {"name" : "Battery type", "type" : 0x05, "access" : 'rw', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
                 {"name" : "Ah capacity", "type" : 0x06, "access" : 'rw', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
                 {"name" : "Maximum charge current", "type" : 0x06, "access" : 'rw', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
                 {"name" : "Number of cells", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
    0x6000 : {"name" : "Battery status", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
                [{"name" : "battery_status", "type" : 0x05, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
    0x6001 : {"name" : "Charger status", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
                [{"name" : "charger_status", "type" : 0x05, "access" : 'rw', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
    0x6010 : {"name" : "temperature", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
                [{"name" : "temperature", "type" : 0x03, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
    0x6020 : {"name" : "Battery parameters", "struct" : array, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
                [{"name" : "highest sub-index supported", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
                 {"name" : "battery type", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
                 {"name" : "ah capacity", "type" : 0x06, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
                 {"name" : "maximum charge current", "type" : 0x06, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
                 {"name" : "number of cells", "type" : 0x06, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
    0x6030 : {"name" : "Battery serial number", "struct" : array, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
                [{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    34
                 {"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
                 {"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
                 {"name" : "packed ASCII characters 9 to 10", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
    0x6031 : {"name" : "Battery ID", "struct" : array, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
                [{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    40
                 {"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    41
                 {"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    42
                 {"name" : "packed ASCII characters 9 to 12", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    43
                 {"name" : "packed ASCII characters 13 to 16", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    44
                 {"name" : "packed ASCII characters 17 to 20", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    45
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    46
    0x6040 : {"name" : "vehicle serial number", "struct" : array, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    47
                [{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    48
                 {"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    49
                 {"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    50
                 {"name" : "packed ASCII characters 9 to 12", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    51
                 {"name" : "packed ASCII characters 13 to 16", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    52
                 {"name" : "packed ASCII characters 17 to 20", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    53
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    54
    0x6041 : {"name" : "vehicle ID", "struct" : array, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    55
                [{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    56
                 {"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    57
                 {"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    58
                 {"name" : "packed ASCII characters 9 to 12", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    59
                 {"name" : "packed ASCII characters 13 to 16", "type" : 0x07, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    60
                 {"name" : "packed ASCII characters 17 to 20", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    61
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    62
    0x6050 : {"name" : "cumulative total ah charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    63
                [{"name" : "cumulative total ah charge", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    64
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    65
    0x6051 : {"name" : "ah expected since last charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    66
                [{"name" : "ah expected since last charge", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    67
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    68
    0x6052 : {"name" : "Ah returned during last charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    69
                [{"name" : "ah returned during last charge", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    70
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    71
    0x6053 : {"name" : "ah since last equalization", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    72
                [{"name" : "ah since last equalization", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    73
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    74
    0x6041 : {"name" : "date of laste equalization", "struct" : array, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    75
                [{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    76
                 {"name" : "number of minutes", "type" : 0x06, "access" : 'rw', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    77
                 {"name" : "number of days", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    78
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    79
    0x6060 : {"name" : "Battery voltage", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    80
                [{"name" : "battery voltage", "type" : 0x07, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    81
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    82
    0x6070 : {"name" : "Charge current requested", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    83
                [{"name" : "charge current requested", "type" : 0x06, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    84
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    85
    0x6080 : {"name" : "Charger state of charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    86
                [{"name" : "charge state of charge", "type" : 0x05, "access" : 'rw', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    87
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    88
    0x6081 : {"name" : "Battery state of charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    89
                [{"name" : "battery state of charge", "type" : 0x05, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    90
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    91
    0x6090 : {"name" : "Water level status", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    92
                [{"name" : "Water level status", "type" : 0x05, "access" : 'ro', "pdo" : False}]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    93
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    94
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    95
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    96
AddMenuEntries = []