| | |
| | | [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 |