CCSDS
ccsds_clcw.h
Go to the documentation of this file.
1
12#ifndef _CCSDS_CLCW_H_
13#define _CCSDS_CLCW_H_
14
15namespace CCSDS
16{
17
26 class Clcw
27 {
28 private:
29 const static uint8_t ClcwVersionNumber = 0;
30 const static uint8_t COPinEffect = 0x1;
31
32 public:
33 static uint32_t create(const uint8_t u8_StatusField, const uint8_t u8_VirtualChannelID,
34 const bool b_NoRfAvail, const bool b_NoBitLock, const bool b_LockOut, const bool b_Wait, const bool b_Retransmit,
35 const uint8_t u8_FarmBCounter, const uint8_t u8_ReportValue);
36
37 static int32_t extract(uint8_t *pu8_StatusField, uint8_t *pu8_VirtualChannelID,
38 bool *pb_NoRfAvail, bool *pb_NoBitLock, bool *pb_LockOut, bool *pb_Wait, bool *pb_Retransmit,
39 uint8_t *pu8_FarmBCounter, uint8_t *pu8_ReportValue, const uint32_t u32_CLCW);
40 };
41
42}
43
44#endif /* _CCSDS_CLCW_H_ */
Class for handling the Communications Link Control Word (CLCW) as described in CCSDS 232....
Definition: ccsds_clcw.h:27
static uint32_t create(const uint8_t u8_StatusField, const uint8_t u8_VirtualChannelID, const bool b_NoRfAvail, const bool b_NoBitLock, const bool b_LockOut, const bool b_Wait, const bool b_Retransmit, const uint8_t u8_FarmBCounter, const uint8_t u8_ReportValue)
Creates a Communications Link Control Word (CLCW) as described in CCSDS 232.0-B-3.
Definition: ccsds_clcw.cpp:41
static int32_t extract(uint8_t *pu8_StatusField, uint8_t *pu8_VirtualChannelID, bool *pb_NoRfAvail, bool *pb_NoBitLock, bool *pb_LockOut, bool *pb_Wait, bool *pb_Retransmit, uint8_t *pu8_FarmBCounter, uint8_t *pu8_ReportValue, const uint32_t u32_CLCW)
Extractes a Communications Link Control Word (CLCW) as described in CCSDS 232.0-B-3.
Definition: ccsds_clcw.cpp:75