|
| uint32_t | Muon::nsw::helper::get_bits (uint32_t word, uint32_t mask, uint8_t position) |
| template<typename T> |
| std::string | Muon::nsw::format (const std::string &str, const T &arg) |
| template<typename T, typename... Args> |
| std::string | Muon::nsw::format (const std::string &str, const T &arg, const Args &... args) |
| template<typename Target, typename Source> |
| Target | Muon::nsw::bit_slice (const std::span< const Source > words, const std::size_t start, const std::size_t end) |
| | Decode bits from data of words.
|
| template<typename Target, typename Source> |
| constexpr Target | Muon::nsw::decode_and_advance (const std::span< const Source > words, std::size_t &start, const std::size_t size) |
| | Decode bits from data of words and advance the read pointer.
|
| template<typename Target, typename Source> |
| constexpr Target | Muon::nsw::decode_at_loc (const std::span< const Source > words, std::size_t &start, const int offset, const std::size_t size) |
| | Decode bits from data of words at read pointer + offset and NOT advance the read pointer.
|
| template<class T> |
| constexpr int8_t | Muon::nsw::max_bit (const T number) |
| | Returns the most left hand bit which is set in a number.
|
| template<class T> |
| constexpr int8_t | Muon::nsw::min_bit (const T number) |
| | Returns the most right hand bit which is set in a number.
|
| template<class Out> |
| constexpr Out | Muon::nsw::fill_bitmask (const uint8_t first_bit, const uint8_t num_bits) |
| uint16_t | Muon::nsw::get_16bxor_crc (const uint32_t *dataPointer, uint32_t dataSize) |