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(CcuInsGeneraterBase* 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 0 : uint32_t GetChannelId() { return channelId; }
22 :
23 2 : ChannelHandle GetChannel() { return channel; }
24 2 : uint16_t GetSemIndex() { return semIndex; }
25 2 : uint16_t GetMask() { return mask; }
26 : private:
27 : CcuInsGeneraterBase* 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
|