Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
code:sub2r-lib [2022/08/22 20:16] – [Windows] Igor Yefmov | code:sub2r-lib [2022/08/30 18:42] – [byte_span] Igor Yefmov | ||
---|---|---|---|
Line 10: | Line 10: | ||
The library is built using MSVC 2022 version '' | The library is built using MSVC 2022 version '' | ||
- | ===== byte_span | + | ===== Basic " |
- | Beginning with version '' | + | |
- | + | ||
- | Quite often a need arises to represent " | + | |
- | + | ||
- | All the library' | + | |
Sample usage: | Sample usage: | ||
Line 21: | Line 16: | ||
using S2R::FX3; | using S2R::FX3; | ||
FX3 fx3; // by default opens device #0 | FX3 fx3; // by default opens device #0 | ||
- | if(fx3){ | + | if(fx3.isValid()){ |
- | | + | |
const auto rc{m_fx3.vrCmd(Fx3Cmd:: | const auto rc{m_fx3.vrCmd(Fx3Cmd:: | ||
, VrCmdOpType:: | , VrCmdOpType:: | ||
, 0 // " | , 0 // " | ||
, 0 // " | , 0 // " | ||
- | , byte_span(vi))}; // buffer to read into | + | , vi)}; |
return vi; // 32 bits of the " | return vi; // 32 bits of the " | ||
} | } |