⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demo_net.ldf

📁 MC68HC908GR60A LIN-BUS源码(编译环境:CodeWarriorV3.1)
💻 LDF
字号:
/* ************************************************************************ */
/*                                                                          */
/*                  Volcano Communications Technologies AB                  */
/*                            All rights reserved                           */
/*                                                                          */
/* ************************************************************************ */

/* **************************************************************************
 * The master distributes the velocity to all slaves in the global_info 
 * frame. It reads the button_pressed from the slave to check if the button
 * has been pressed. The slave increases the button_pressed value by one every
 * time the button is pressed, which allows the master to see changes despite
 * that the signal is transferred cyclic. Finally, the master sends out the
 * lock_door signal to control the lock in the door.
 */

LIN_description_file;
LIN_protocol_version = "2.0";
LIN_language_version = "2.0";
LIN_speed = 10.4 kbps;

Nodes 
{
    Master: master, 5ms, 1ms;
    Slaves: EY16, QY4, GR60A, QL4;
}

Signals 
{
    info                   : 8, 0x00, master, EY16, QY4, QL4, GR60A;
    resolving_done         : 1, 0x00, master, EY16, QY4, QL4, GR60A;
    data_20                : 8, 0x00, EY16, master;
    data_EY16_resp_error   : 1, 0x00, EY16, master;
    data_18                : 8, 0x00, QY4,  master;
    data_QY4_resp_error    : 1, 0x00, QY4,  master;
    data_10                : 8, 0x00, QL4,  master;
    data_QL4_resp_error    : 1, 0x00, QL4,  master;
    data_28                : 8, 0x00, GR60A, master;
    data_GR60A_resp_error  : 1, 0x00, GR60A,  master;
}

Diagnostic_signals
{
    MasterReqB0: 8, 0;
    MasterReqB1: 8, 0;
    MasterReqB2: 8, 0;
    MasterReqB3: 8, 0;
    MasterReqB4: 8, 0;
    MasterReqB5: 8, 0;
    MasterReqB6: 8, 0;
    MasterReqB7: 8, 0;
    SlaveRespB0: 8, 0;
    SlaveRespB1: 8, 0;
    SlaveRespB2: 8, 0;
    SlaveRespB3: 8, 0;
    SlaveRespB4: 8, 0;
    SlaveRespB5: 8, 0;
    SlaveRespB6: 8, 0;
    SlaveRespB7: 8, 0;
}

Frames {
    global_info : 0x05, master, 1
    {
        info, 0;
    }
    resolving : 0x06, master, 1
    {
        resolving_done, 0;
    }
    EY16_20: 0x20, EY16, 2
    {
        data_20, 0;
        data_EY16_resp_error, 9;
    }
    QY4_18: 0x18, QY4, 2
    {
       data_18, 0;
       data_QY4_resp_error, 9;
    }
    QL4_10: 0x10, QL4, 2
    {
       data_10, 0;
       data_QL4_resp_error, 9;
    }
    GR60A_28: 0x28, GR60A, 2
    {
       data_28, 0;
       data_GR60A_resp_error, 9;
    }
}


Diagnostic_frames
{
    MasterReq: 60
    {
        MasterReqB0, 0;
        MasterReqB1, 8;
        MasterReqB2, 16;
        MasterReqB3, 24;
        MasterReqB4, 32;
        MasterReqB5, 40;
        MasterReqB6, 48;
        MasterReqB7, 56;
    }
    SlaveResp: 61
    {
        SlaveRespB0, 0;
        SlaveRespB1, 8;
        SlaveRespB2, 16;
        SlaveRespB3, 24;
        SlaveRespB4, 32;
        SlaveRespB5, 40;
        SlaveRespB6, 48;
        SlaveRespB7, 56;
    }
}

Node_attributes
{
    EY16
    {
        LIN_protocol = "2.0";
        configured_NAD = 0x40;
        product_id = 0x000B, 0x0020, 1;
        response_error = data_EY16_resp_error;
        P2_min = 20 ms;
        ST_min = 20 ms;
        configurable_frames
        {
            global_info = 0x0050;
            resolving   = 0x0060;
            EY16_20     = 0x1000;
        }
    }

    QY4
    {
        LIN_protocol = "2.0";
        configured_NAD = 0x41;
        product_id = 0x000B, 0x0021, 1;
        response_error = data_QY4_resp_error;
        P2_min = 20 ms;
        ST_min = 20 ms;
        configurable_frames
        {
            global_info = 0x0050;
            resolving   = 0x0060;
            QY4_18      = 0x1010;
        }
    }
    
    QL4
    {
        LIN_protocol = "2.0";
        configured_NAD = 0x42;
        product_id = 0x000B, 0x0022, 1;
        response_error = data_QL4_resp_error;
        P2_min = 20 ms;
        ST_min = 20 ms;
        configurable_frames
        {
            global_info = 0x0050;
            resolving   = 0x0060;
            QL4_10      = 0x1020;
        }
    }
    
    GR60A
    {
        LIN_protocol = "2.0";
        configured_NAD = 0x43;
        product_id = 0x000B, 0x0023, 1;
        response_error = data_GR60A_resp_error;
        P2_min = 20 ms;
        ST_min = 20 ms;
        configurable_frames
        {
            global_info = 0x0050;
            resolving   = 0x0060;
            GR60A_28    = 0x1030;
        }
    }
}

Schedule_tables {
    sch_conflict_resolving
    {
        AssignFrameId {EY16, global_info}       delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {QY4, global_info}        delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {QL4, global_info}        delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {GR60A, global_info}      delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {EY16, EY16_20}           delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {QY4, QY4_18}             delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {QL4, QL4_10}             delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {GR60A, GR60A_28}         delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {EY16, resolving}         delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {QY4, resolving}          delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {QL4, resolving}          delay 20 ms;
        SlaveResp                               delay 20 ms;
        AssignFrameId {GR60A, resolving}        delay 20 ms;
        SlaveResp                               delay 20 ms;
        resolving                               delay 20 ms;
    }

    normal_mode
    {
        global_info                             delay 20 ms;
        EY16_20                                 delay 20 ms;
        QY4_18                                  delay 20 ms;
        QL4_10                                  delay 20 ms;
        GR60A_28                                delay 20 ms;
        MasterReq                               delay 20 ms;
        SlaveResp                               delay 20 ms;
    }
    low_power_mode
    {
        MasterReq                               delay 20 ms;
        SlaveResp                               delay 2000 ms;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -