eive-obsw/linux/obc/PdecConfig.h

34 lines
1.1 KiB
C
Raw Normal View History

2021-11-01 12:41:20 +01:00
#ifndef LINUX_OBC_PDECCONFIG_H_
#define LINUX_OBC_PDECCONFIG_H_
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
#include <cstring>
/**
* @brief PDEC specific configuration parameters.
*
* @author J. Meier
*/
namespace PdecConfig {
// Access to register space of PDEC via the AXI to AHB bridge
static const char UIO_PDEC_REGISTERS[] = "/dev/uio0";
// Direct access to memory area in DDR assigned to PDEC
static const char UIO_PDEC_MEMORY[] = "/dev/uio2";
// TC transfer frame configuration parameters
static const uint8_t VERSION_ID = 0;
// static const uint8_t BYPASS_FLAG = 1;
// static const uint8_t CONTROL_COMMAND_FLAG = 1;
static const uint8_t BYPASS_FLAG = 0;
static const uint8_t CONTROL_COMMAND_FLAG = 0;
2021-11-01 12:41:20 +01:00
static const uint8_t VIRTUAL_CHANNEL = 0;
static const uint8_t RESERVED_FIELD_A = 0;
static const uint16_t SPACECRAFT_ID = 0x274;
// Parameters to control the FARM for AD frames
static const uint8_t POSITIVE_WINDOW = 10;
static const uint8_t NEGATIVE_WINDOW = 151;
};
#endif /* LINUX_OBC_PDECCONFIG_H_ */