//!;;Rpy::+
//!;;Rpy::ModelElement: idddsp::idd_dsp_status_types
//!;;Rpy::
//!;;Rpy::Component: IDDComponent 
//!;;Rpy::Configuration: IDDConfig
//!;;Rpy::Project: IDD
//!;;Rpy::
//!;;Rpy::FilePath: idd_dsp_status_types.h
//!;;Rpy::Tag: $Tag
//!;;Rpy::
//!;;Rpy::Copyright: Leonardocompany - COMPANY RESTRICTED
//!;;Rpy::
//!;;Rpy::Generated by Rhapsody: 7.5.3 
//!;;Rpy::-


#ifndef idd_dsp_status_types_H
#define idd_dsp_status_types_H

//## dependency idd_mode_types
#include "idd_mode_types.h"
namespace idddsp
{
    //## package idddsp::idd_dsp_status_types
    
    
    //#[ type health_status_bitmap_t
    struct health_status_bitmap_t
    {
        unsigned int batch_miss: 1;
        unsigned int signal_miss: 1;
        unsigned int dsp_fail: 1;
        unsigned int srio_essential_fail: 1; //only about master DSP
    }
    ;
    //#]
    
    //#[ type sw_health_bitmap_t
    struct sw_health_bitmap_t
    {
        unsigned int sw_header_fail: 1;
        unsigned int sw_settings_fail: 1;
    }
    ;
    //#]
    
    //#[ type health_t
    union health_t
    {
        unsigned int raw;
        health_status_bitmap_t str;
    };
    //#]
    
    //#[ type sw_health_t
    union sw_health_t
    {
        uint32_t raw;
        sw_health_bitmap_t str;
    };
    //#]
    
    //#[ type srio_net_fails_map_t
    union srio_net_fails_map_t
    {
        uint32_t raw;
        struct {
            unsigned int dsp0: 4;
            unsigned int dsp1: 4;
            unsigned int dsp2: 4;
            unsigned int dsp3: 4;
            unsigned int dsp4: 4;
        } str;
        
        enum dsp_fail_bit_t {
          fail_carrier=1,
          fail_dsp0=2,
          fail_dsp1=4,
          
          dsp_map_shift=4,
          dsp_map_mask=0x0F
        };
    };
    //#]
    
    //#[ type status_t
    struct status_t
    {
    
        unsigned int spare[8];
    };
    //#]
    
    //#[ type bite_report_t
    struct bite_report_t
    {
        unsigned int bite_types;
        unsigned int bite_phase;
        
        health_t health;
        sw_health_t sw_health;
        srio_net_fails_map_t srio_net_fails_map;
        
        uint32_t rec_status;
        uint32_t rec_kbytes;
        
        uint32_t spare_[2];
    };
    
    //#]
}

#endif
//;;Rpy:: end


