SRS-control 0.1.4
Loading...
Searching...
No Matches
srs::common Namespace Reference

Typedefs

using RawDelimSizeType = uint32_t

Enumerations

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

Functions

template<std::size_t bit_size, std::size_t max, std::size_t min = 0>
constexpr auto subset (const std::bitset< bit_size > &bits) -> std::bitset< max - min >
template<std::size_t high_size, std::size_t low_size>
constexpr auto merge_bits (const std::bitset< high_size > &high_bits, const std::bitset< low_size > &low_bits) -> std::bitset< high_size+low_size >
template<std::size_t bit_size>
constexpr auto byte_swap (const std::bitset< bit_size > &bits)
template<typename T>
constexpr auto gray_to_binary (T gray_val)
constexpr auto get_shared_from_this (auto &&obj)
auto create_coro_future (auto &coro, auto &&pre_fut)
auto create_coro_future (auto &coro, bool is_terminated)
void coro_sync_start (auto &coro, auto &&... args)

Variables

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