This repo is work in progress. Functions are not implemented.
sergio-eld / arinc429_utils Goto Github PK
View Code? Open in Web Editor NEWTypesafe Utility library for ARINC 429 protocol
License: MIT License
Typesafe Utility library for ARINC 429 protocol
License: MIT License
It would be convenient to assemble a specific word type from descriptors with default values.
function should accept variadic data descriptors and possibly an arinc word type as a first argument to be used as feed.
Arinc word type must contain the same descriptors as provided within arguments, or it's specific bits must not be occupied for a given descriptor.
На текущий момент rawWord_ является приватный полем word_generic, соответствующего геттера тоже нет, таким образом получить доступ к uint32_t варианту слова нельзя. В таком случае использовать библиотеку можно только для декодирования, реализовать генерацию не получится.
Now this version does not work as intended:
struct label{};
using label_descr = data_descriptor<label, 1, 8>;
using word_with_label = word_generic<label_descr>;
auto val = word_with_label().get<label>(); // will not compile
It would be convenient to be able to do something like:
word.data += 123;
word.data |= 0x111000;
В протоколах встречаются случаи, когда для получения искомого целочисленного значения, передаваемое значение, предполагается умножать на заранее определенный целочисленный множитель (scale factor). При текущем интерфейсе это достигается за счет кастомизации data_descriptor, однако логичнее добавить данную возможность с помощью дополнительной версии функции set_value.
Как варианта:
template
void set_value(const T &value,
traits::word_raw_type & wordRaw,
size_t lsb,
size_t msb,
T scaleFactor,
std::true_type /is_floating_point/);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.