Changes between Version 100 and Version 101 of Writing Rules/Tlmt


Ignore:
Timestamp:
Mar 2, 2009, 5:17:20 PM (14 years ago)
Author:
alinevieiramello@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Rules/Tlmt

    v100 v101  
    6767The !SocLib payload extension only contains four data members:
    6868{{{
    69   soclib::tlmt::vci_command m_soclib_command;
    70   unsigned int m_src_id;
    71   unsigned int m_trd_id;       
    72   unsigned int m_pkt_id;
     69  soclib::tlmt::command m_soclib_command;
     70  unsigned int          m_src_id;
     71  unsigned int          m_trd_id;       
     72  unsigned int          m_pkt_id;
    7373}}}
    7474The '''m_soclib_command''' data member supersedes the command of the TLM2.0 generic payload. This is why the parameter to
     
    9595{{{
    9696  // Command related method
    97   bool                 is_read() const {return (m_soclib_command == VCI_READ_COMMAND);}
    98   void                 set_read() {m_soclib_command = VCI_READ_COMMAND;}
    99   bool                 is_write() const {return (m_soclib_command == VCI_WRITE_COMMAND);}
    100   void                 set_write() {m_soclib_command = VCI_WRITE_COMMAND;}
    101   bool                 is_locked_read() const {return (m_soclib_command == VCI_LOCKED_READ_COMMAND);}
    102   void                 set_locked_read() {m_soclib_command = VCI_LOCKED_READ_COMMAND;}
    103   bool                 is_store_cond() const {return (m_soclib_command == VCI_STORE_COND_COMMAND);}
    104   void                 set_store_cond() {m_soclib_command = VCI_STORE_COND_COMMAND;}
    105   bool                 is_null_message() const {return (m_soclib_command == VCI_NULL_MESSAGE);}
    106   void                 set_null_message() {m_soclib_command = VCI_NULL_MESSAGE;}
    107   bool                 is_active() const {return (m_soclib_command == VCI_ACTIVE);}
    108   void                 set_active() {m_soclib_command = VCI_ACTIVE;}
    109   bool                 is_inactive() const {return (m_soclib_command == VCI_INACTIVE);}
    110   void                 set_inactive() {m_soclib_command = VCI_INACTIVE;}
    111   vci_command          get_command() const {return m_soclib_command;}
    112   void                 set_command(const vci_command command) {m_soclib_command = command;}
     97  bool                  is_read() const {return (m_soclib_command == soclib::tlmt::VCI_READ_COMMAND);}
     98  void                  set_read() {m_soclib_command = soclib::tlmt::VCI_READ_COMMAND;}
     99  bool                  is_write() const {return (m_soclib_command == soclib::tlmt::VCI_WRITE_COMMAND);}
     100  void                  set_write() {m_soclib_command = soclib::tlmt::VCI_WRITE_COMMAND;}
     101  bool                  is_locked_read() const {return (m_soclib_command == soclib::tlmt::VCI_LINKED_READ_COMMAND);}
     102  void                  set_locked_read() {m_soclib_command = soclib::tlmt::VCI_LINKED_READ_COMMAND;}
     103  bool                  is_store_cond() const {return (m_soclib_command == soclib::tlmt::VCI_STORE_COND_COMMAND);}
     104  void                  set_store_cond() {m_soclib_command = soclib::tlmt::VCI_STORE_COND_COMMAND;}
     105  bool                  is_null_message() const {return (m_soclib_command == soclib::tlmt::TLMT_NULL_MESSAGE);}
     106  void                  set_null_message() {m_soclib_command = soclib::tlmt::TLMT_NULL_MESSAGE;}
     107  bool                  is_active() const {return (m_soclib_command == soclib::tlmt::TLMT_ACTIVE);}
     108  void                  set_active() {m_soclib_command = soclib::tlmt::TLMT_ACTIVE;}
     109  bool                  is_inactive() const {return (m_soclib_command == soclib::tlmt::TLMT_INACTIVE);}
     110  void                  set_inactive() {m_soclib_command = soclib::tlmt::TLMT_INACTIVE;}
     111  soclib::tlmt::command get_command() const {return m_soclib_command;}
     112  void                  set_command(const soclib::tlmt::command c) {m_soclib_command = c;}
    113113 
    114114  unsigned int get_src_id(){ return m_src_id; }
     
    119119  void set_trd_id(unsigned int id) { m_trd_id = id; }
    120120  void set_pkt_id(unsigned int id) { m_pkt_id = id; }
    121 
     121 
    122122}}}
    123123