distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
extractBitField.hpp File Reference

extractBitField() header More...

#include "estd/TypeFromSize.hpp"
#include <array>
#include <climits>
Include dependency graph for extractBitField.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 Collection of useful templates.


template<size_t index, size_t size, bool reverse = {}, typename Ret = TypeFromSize<(size + CHAR_BIT - 1) / CHAR_BIT>, typename T , size_t arraySize>
static Ret estd::extractBitField (const std::array< T, arraySize > &array)
 Extracts a bit field from array of raw data. More...

Detailed Description

extractBitField() header

Copyright (C) 2019 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.