SRS-control 0.1.4
 
Loading...
Searching...
No Matches
Common defintions

Typedefs

using srs::common::RawDelimSizeType = uint32_t
 

Enumerations

enum class  srs::common::DataPrintMode : uint8_t { srs::common::DataPrintMode::print_speed , srs::common::DataPrintMode::print_header , srs::common::DataPrintMode::print_raw , srs::common::DataPrintMode::print_all }
 

Variables

constexpr auto srs::common::BYTE_BIT_LENGTH = 8
 
constexpr auto srs::common::DEFAULT_SRS_IP = std::string_view{ "10.0.0.2" }
 
constexpr auto srs::common::DEFAULT_TIMEOUT_SECONDS = 2
 
constexpr auto srs::common::WRITE_COMMAND_BITS = uint8_t{ 0xaa }
 
constexpr auto srs::common::DEFAULT_TYPE_BITS = uint8_t{ 0xaa }
 
constexpr auto srs::common::DEFAULT_CHANNEL_ADDRE = uint16_t{ 0xff }
 
constexpr auto srs::common::COMMAND_LENGTH_BITS = uint16_t{ 0xffff }
 
constexpr auto srs::common::ZERO_UINT16_PADDING = uint16_t{}
 
constexpr auto srs::common::SMALL_READ_MSG_BUFFER_SIZE = 100
 
constexpr auto srs::common::LARGE_READ_MSG_BUFFER_SIZE = 10000
 size of the data array for reading a UDP package
 
constexpr auto srs::common::DEFAULT_CMD_LENGTH = uint16_t{ 0xffff }
 
constexpr auto srs::common::CMD_TYPE = uint8_t{ 0xaa }
 
constexpr auto srs::common::WRITE_CMD = uint8_t{ 0xaa }
 
constexpr auto srs::common::READ_CMD = uint8_t{ 0xbb }
 
constexpr auto srs::common::I2C_ADDRESS = uint16_t{ 0x0042 }
 
constexpr auto srs::common::NULL_ADDRESS = uint16_t{ 0x000f }
 
constexpr auto srs::common::INIT_COUNT_VALUE = uint32_t{ 0x80000000 }
 
constexpr auto srs::common::DEFAULT_STATUS_WAITING_TIME_SECONDS = std::chrono::seconds{ 5 }
 
constexpr auto srs::common::DEFAULT_SRS_CONTROL_PORT = 6600
 
constexpr auto srs::common::FEC_DAQ_RECEIVE_PORT = 6006
 
static constexpr int srs::common::FEC_CONTROL_LOCAL_PORT = 6007
 
constexpr auto srs::common::DEFAULT_DISPLAY_PERIOD = std::chrono::milliseconds{ 200 }
 
constexpr auto srs::common::DEFAULT_ROOT_HTTP_SERVER_PERIOD = std::chrono::milliseconds{ 1000 }
 
constexpr auto srs::common::FEC_ID_BIT_LENGTH = 8
 
constexpr auto srs::common::HIT_DATA_BIT_LENGTH = 48
 
constexpr auto srs::common::SRS_TIMESTAMP_HIGH_BIT_LENGTH = 32
 
constexpr auto srs::common::SRS_TIMESTAMP_LOW_BIT_LENGTH = 10
 
constexpr auto srs::common::FLAG_BIT_POSITION = 15
 
constexpr auto srs::common::GZIP_DEFAULT_COMPRESSION_LEVEL = 9
 
constexpr auto srs::common::PROTOBUF_ENABLE_GZIP = true
 

Detailed Description

Typedef Documentation

◆ RawDelimSizeType

Definition at line 60 of file CommonDefitions.hpp.

Enumeration Type Documentation

◆ DataPrintMode

enum class srs::common::DataPrintMode : uint8_t
strong
Enumerator
print_speed 
print_header 
print_raw 
print_all 

Definition at line 52 of file CommonDefitions.hpp.

Variable Documentation

◆ BYTE_BIT_LENGTH

auto srs::common::BYTE_BIT_LENGTH = 8
constexpr

Definition at line 13 of file CommonDefitions.hpp.

◆ CMD_TYPE

auto srs::common::CMD_TYPE = uint8_t{ 0xaa }
constexpr

Definition at line 27 of file CommonDefitions.hpp.

◆ COMMAND_LENGTH_BITS

auto srs::common::COMMAND_LENGTH_BITS = uint16_t{ 0xffff }
constexpr

Definition at line 21 of file CommonDefitions.hpp.

◆ DEFAULT_CHANNEL_ADDRE

auto srs::common::DEFAULT_CHANNEL_ADDRE = uint16_t{ 0xff }
constexpr

Definition at line 20 of file CommonDefitions.hpp.

◆ DEFAULT_CMD_LENGTH

auto srs::common::DEFAULT_CMD_LENGTH = uint16_t{ 0xffff }
constexpr

Definition at line 26 of file CommonDefitions.hpp.

◆ DEFAULT_DISPLAY_PERIOD

auto srs::common::DEFAULT_DISPLAY_PERIOD = std::chrono::milliseconds{ 200 }
constexpr

Definition at line 42 of file CommonDefitions.hpp.

◆ DEFAULT_ROOT_HTTP_SERVER_PERIOD

auto srs::common::DEFAULT_ROOT_HTTP_SERVER_PERIOD = std::chrono::milliseconds{ 1000 }
constexpr

Definition at line 43 of file CommonDefitions.hpp.

◆ DEFAULT_SRS_CONTROL_PORT

auto srs::common::DEFAULT_SRS_CONTROL_PORT = 6600
constexpr

Definition at line 37 of file CommonDefitions.hpp.

◆ DEFAULT_SRS_IP

auto srs::common::DEFAULT_SRS_IP = std::string_view{ "10.0.0.2" }
constexpr

Definition at line 16 of file CommonDefitions.hpp.

◆ DEFAULT_STATUS_WAITING_TIME_SECONDS

auto srs::common::DEFAULT_STATUS_WAITING_TIME_SECONDS = std::chrono::seconds{ 5 }
constexpr

Definition at line 34 of file CommonDefitions.hpp.

◆ DEFAULT_TIMEOUT_SECONDS

auto srs::common::DEFAULT_TIMEOUT_SECONDS = 2
constexpr

Definition at line 17 of file CommonDefitions.hpp.

◆ DEFAULT_TYPE_BITS

auto srs::common::DEFAULT_TYPE_BITS = uint8_t{ 0xaa }
constexpr

Definition at line 19 of file CommonDefitions.hpp.

◆ FEC_CONTROL_LOCAL_PORT

int srs::common::FEC_CONTROL_LOCAL_PORT = 6007
staticconstexpr

Definition at line 39 of file CommonDefitions.hpp.

◆ FEC_DAQ_RECEIVE_PORT

auto srs::common::FEC_DAQ_RECEIVE_PORT = 6006
constexpr

Definition at line 38 of file CommonDefitions.hpp.

◆ FEC_ID_BIT_LENGTH

auto srs::common::FEC_ID_BIT_LENGTH = 8
constexpr

Definition at line 44 of file CommonDefitions.hpp.

◆ FLAG_BIT_POSITION

auto srs::common::FLAG_BIT_POSITION = 15
constexpr

Definition at line 48 of file CommonDefitions.hpp.

◆ GZIP_DEFAULT_COMPRESSION_LEVEL

auto srs::common::GZIP_DEFAULT_COMPRESSION_LEVEL = 9
constexpr

Definition at line 49 of file CommonDefitions.hpp.

◆ HIT_DATA_BIT_LENGTH

auto srs::common::HIT_DATA_BIT_LENGTH = 48
constexpr

Definition at line 45 of file CommonDefitions.hpp.

◆ I2C_ADDRESS

auto srs::common::I2C_ADDRESS = uint16_t{ 0x0042 }
constexpr

Definition at line 30 of file CommonDefitions.hpp.

◆ INIT_COUNT_VALUE

auto srs::common::INIT_COUNT_VALUE = uint32_t{ 0x80000000 }
constexpr

Definition at line 33 of file CommonDefitions.hpp.

◆ LARGE_READ_MSG_BUFFER_SIZE

auto srs::common::LARGE_READ_MSG_BUFFER_SIZE = 10000
constexpr

size of the data array for reading a UDP package

Definition at line 24 of file CommonDefitions.hpp.

◆ NULL_ADDRESS

auto srs::common::NULL_ADDRESS = uint16_t{ 0x000f }
constexpr

Definition at line 31 of file CommonDefitions.hpp.

◆ PROTOBUF_ENABLE_GZIP

auto srs::common::PROTOBUF_ENABLE_GZIP = true
constexpr

Definition at line 50 of file CommonDefitions.hpp.

◆ READ_CMD

auto srs::common::READ_CMD = uint8_t{ 0xbb }
constexpr

Definition at line 29 of file CommonDefitions.hpp.

◆ SMALL_READ_MSG_BUFFER_SIZE

auto srs::common::SMALL_READ_MSG_BUFFER_SIZE = 100
constexpr

Definition at line 23 of file CommonDefitions.hpp.

◆ SRS_TIMESTAMP_HIGH_BIT_LENGTH

auto srs::common::SRS_TIMESTAMP_HIGH_BIT_LENGTH = 32
constexpr

Definition at line 46 of file CommonDefitions.hpp.

◆ SRS_TIMESTAMP_LOW_BIT_LENGTH

auto srs::common::SRS_TIMESTAMP_LOW_BIT_LENGTH = 10
constexpr

Definition at line 47 of file CommonDefitions.hpp.

◆ WRITE_CMD

auto srs::common::WRITE_CMD = uint8_t{ 0xaa }
constexpr

Definition at line 28 of file CommonDefitions.hpp.

◆ WRITE_COMMAND_BITS

auto srs::common::WRITE_COMMAND_BITS = uint8_t{ 0xaa }
constexpr

Definition at line 18 of file CommonDefitions.hpp.

◆ ZERO_UINT16_PADDING

auto srs::common::ZERO_UINT16_PADDING = uint16_t{}
constexpr

Definition at line 22 of file CommonDefitions.hpp.