objdictgen/config/DS-419.prf
author Robert Lehmann <robert.lehmann@sitec-systems.de>
Tue, 28 Jul 2015 16:36:55 +0200
changeset 793 72e9e1064432
parent 0 4472ee7c6c3e
permissions -rw-r--r--
timers_unix: Fix termination problem of WaitReceiveTaskEnd

The function pthread_kill sends the Signal thread and to the own process.
If you use this construct than the application which calls uses the
canfestival api will terminate at the call of canClose. To avoid that
use pthread_cancel instead of pthread_kill. To use the pthread_cancel call
you need to set the cancel ability in the thread function. That means
you need to call pthread_setcancelstate and pthread_setcanceltype.
For the termination of the thread at any time it is important to set the
cancel type to PTHREAD_CANCEL_ASYNCHRONOUS.
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-419
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
    0x6000 : {"name" : "Battery status", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
                [{"name" : "battery_status", "type" : 0x05, "access" : 'rw', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
    0x6001 : {"name" : "Charger status", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
                [{"name" : "charger_status", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
    0x6052 : {"name" : "Ah returned during last charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
                [{"name" : "ah_returned_during_last_charge", "type" : 0x06, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
    0x6060 : {"name" : "Battery voltage", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
                [{"name" : "battery_voltage", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
    0x6070 : {"name" : "Charge current requested", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
                [{"name" : "charge_current_requested", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
    0x6080 : {"name" : "Charger state of charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
                [{"name" : "charge_state_of_charge", "type" : 0x05, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
    0x6081 : {"name" : "Battery state of charge", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
                [{"name" : "battery_state_of_charge", "type" : 0x05, "access" : 'rw', "pdo" : True}]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
AddMenuEntries = []