/******************************************************************************/
// @copyright   Copyright Notification
//   No part may be reproduced except as authorized by written permission.
//   The copyright and the foregoing restriction extend to reproduction in all media.
//   Trademark 2010, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC).
//   All rights reserved.
// @version: IWD_10wk37
// $Date: 2010-03-14 10:56:03 +0100 (Sun, 14 Mar 2010) $
// $Rev: 2566 $
/******************************************************************************/

module NasEmu_Component {
  import from CommonDefs all;
  import from EUTRA_ASP_SrbDefs all;
  import from NasEmu_AspTypes all;
  import from EUTRA_ASP_NasCtrl all;

  // global information:
  type record NasSecurity_Type { /* @status    APPROVED */
    NAS_SecurityInfo_Type       Integrity,
    NAS_SecurityInfo_Type       Ciphering,
    NasCountInfo_Type           NasCount,
    B5_Type                     BearerId,       /* R5-101050: BearerId changed to 5 bits */
    boolean                     SecurityStarted /* can be set to true after the download of security keys since
                                                   ciphering is assumed for all security protected NAS PDUs in UL */
  };
  //----------------------------------------------------------------------------
  // Component definition:
  type component NASEMU_PTC { /* @status    APPROVED */
    var NasSecurity_Type        vc_NasSecurity;
    port NASEMU_SYSTEM_PORT     SYS_SRB;
    port NASEMU_SRB_PORT        TC_SRB;
    port NASEMU_CTRL_PORT       CTRL;
  };
}
