LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/reps/sync - ccu_rep_remwaitsem_v1.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 66.7 % 6 4
Test Date: 2026-07-28 12:11:00 Functions: 66.7 % 6 4

            Line data    Source code
       1              : /*
       2              :  * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
       3              :  * Description: ccu representation base header file
       4              :  * Create: 2025-02-18
       5              :  */
       6              : 
       7              : #ifndef HCOMM_CCU_REPRESENTATION_REMWAITSEM_H
       8              : #define HCOMM_CCU_REPRESENTATION_REMWAITSEM_H
       9              : 
      10              : #include "ccu_rep_base_v1.h"
      11              : 
      12              : namespace hcomm {
      13              : namespace CcuRep {
      14              : 
      15              : class CcuRepRemWaitSem : public CcuRepBase {
      16              : public:
      17              :     CcuRepRemWaitSem(CcuInsGeneraterBase* insGenPtr, const ChannelHandle channel, uint16_t semIndex, uint16_t mask, bool isProfiling=true);
      18              :     bool        Translate(CcuKernel* ccuKernel, CcuInstr *&instr, uint16_t &instrId, const TransDep &dep) override;
      19              :     std::string Describe() override;
      20            0 :     uint32_t    GetId() override { return signalId; }
      21            0 :     uint16_t    GetChannelId() { return channelId; }
      22              : 
      23            4 :     bool GetIsProfiling() { return isProfiling; }
      24            4 :     ChannelHandle GetChannel() { return channel; }
      25            4 :     uint16_t GetSemIndex() { return semIndex; }
      26            4 :     uint16_t GetMask() { return mask; }
      27              : 
      28              : private:
      29              :     CcuInsGeneraterBase* insGenPtr{nullptr};
      30              :     ChannelHandle channel;
      31              :     uint16_t            semIndex{0};
      32              :     uint16_t            mask{0};
      33              :     bool                isProfiling{true};
      34              :     uint32_t            signalId{0};
      35              :     uint16_t            channelId{0};
      36              : };
      37              : 
      38              : }; // namespace CcuRep
      39              : }; // namespace hcomm
      40              : #endif // HCOMM_CCU_REPRESENTATION_REMWAITSEM_H
        

Generated by: LCOV version 2.0-1