objdictgen/config/DS-302.prf
author Robert Lehmann <robert.lehmann@sitec-systems.de>
Tue, 28 Jul 2015 16:36:55 +0200
changeset 793 72e9e1064432
parent 537 9abbda25a18b
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.
global Mapping, AddMenuEntries

"""
MappingDictionary for DS-302
"""

Mapping = {
    0x1F20 : {"name" : "Store DCF", "struct" : rec, "need" : False, "values" :
                [{"name" : "Number of Entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Store DCF for node %d[(sub)]", "type" : 0x0F, "access" : 'rw', "pdo" : False, "nbmax" : 0x7F}]},
    
    0x1F21 : {"name" : "Storage Format", "struct" : rec, "need" : False, "values" :
                [{"name" : "Number of Entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Storage Format for Node %d[(sub)]", "type" : 0x02, "access" : 'rw', "pdo" : False, "nbmax" : 0x7F}]},
    
    0x1F22 : {"name" : "Concise DCF", "struct" : rec, "need" : False, "values" :
                [{"name" : "Number of Entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Concise DCF for Node %d[(sub)]", "type" : 0x0F, "access" : 'rw', "pdo" : False, "nbmax" : 0x7F}]} ,  

    0x1F50 : {"name" : "Download Program Data", "struct" : rec, "need" : False, "values" :
                [{"name" : "Number of different programs supported on the node", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Program Number %d[(sub)]", "type" : 0x0F, "access" : 'rw', "pdo" : False, "nbmax" : 0x7F}]},
    
    0x1F51 : {"name" : "Program Control", "struct" : rec, "need" : False, "values" :
                [{"name" : "Number of different programs on the node", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Program Number %d[(sub)]", "type" : 0x05, "access" : 'rw', "pdo" : False, "nbmax" : 0x7F}]},
    
    0x1F52 : {"name" : "Verify Application Software", "struct" : array, "need" : False, "values" :
                [{"name" : "Number of Entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Application software date", "type" : 0x07, "access" : 'rw', "pdo" : False},  
                 {"name" : "Application sofware time", "type" : 0x07, "access" : 'rw', "pdo" : False}]},

    0x1F53 : {"name" : "Expected Application SW Date", "struct" : rec, "need" : False, "values" :
                [{"name" : "Number of different programs on the node", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Program number %d[(sub)]", "type" : 0x07, "access" : 'rw', "pdo" : False, "nbmax" : 0x7F}]},

    0x1F55 : {"name" : "Expected Application SW Time", "struct" : rec, "need" : False, "values" :
                [{"name" : "Number of different programs on the node", "type" : 0x05, "access" : 'ro', "pdo" : False},
                 {"name" : "Program number %d[(sub)]", "type" : 0x07, "access" : 'rw', "pdo" : False, "nbmax" : 0x7F}]}
}

AddMenuEntries = []