Jan Breuer
2015-09-06 cd4e8977b23a0ac7950e773e09b316dfc75d25b5
Move migration guide to documentation
1个文件已修改
12 ■■■■■ 已修改文件
README.md 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
@@ -13,18 +13,6 @@
[Documentation](http://j123b567.github.io/scpi-parser)
--------
Migration from v1 to v2
-----------------------
Functions `SCPI_ParamNumber` and `SCPI_NumberToStr` has one more parameter - array of special values. It is still possible to use provided `scpi_special_numbers_def`, but you are free to use different deffinition per parameter.
Function `SCPI_ParamChoice` has different type of choice list. It is now array of `scpi_choice_def_t` and not array of `const char *`. It is now possible to define `tag`. `SCPI_ParamChoice` will now return value of this tag and not index to array. If you want print the name of the choice value, you should now use `SCPI_ChoiceToName` instead of direct indexing of the array.
Reading strings is now more correct but it needs secondary copy buffer. You can use function `SCPI_ParamCopyText` to correctly handle strings like `"normal ""quoted"" normal"` will be converted to `normal "quoted" normal`.
It is now possible to use `SCPI_ParamArbitraryBlock` and `SCPI_ResultArbitraryBlock` to work with binary data input and output.
Test callback is removed from context. You should now reimplement whole `*TST?` command callback.
Usage
---------------
Download source package or clone repository