LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/reps/sync - ccu_rep_rempostsem_v1.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 75.0 % 4 3
Test Date: 2026-08-04 10:52:23 Functions: 75.0 % 4 3

            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_REMPOSTSEM_H
       8              : #define HCOMM_CCU_REPRESENTATION_REMPOSTSEM_H
       9              : 
      10              : #include "ccu_rep_base_v1.h"
      11              : 
      12              : namespace hcomm {
      13              : namespace CcuRep {
      14              : 
      15              : class CcuRepRemPostSem : public CcuRepBase {
      16              : public:
      17              :     CcuRepRemPostSem(CcuInsGeneratorBase* insGenPtr, const ChannelHandle channel, uint16_t semIndex, uint16_t mask);
      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              :     uint32_t    GetChannelId() { return channelId; }
      22              : 
      23            8 :     ChannelHandle GetChannel() { return channel; }
      24            5 :     uint16_t GetSemIndex() { return semIndex; }
      25            4 :     uint16_t GetMask() { return mask; }
      26              : private:
      27              :     CcuInsGeneratorBase* insGenPtr{nullptr};
      28              :     ChannelHandle channel;
      29              :     uint32_t            channelId{0};
      30              :     uint16_t            semIndex{0};
      31              :     uint16_t            mask{0};
      32              :     uint32_t            signalId{0};
      33              : };
      34              : 
      35              : }; // namespace CcuRep
      36              : }; // namespace hcomm
      37              : #endif // HCOMM_CCU_REPRESENTATION_REMPOSTSEM_H
        

Generated by: LCOV version 2.0-1