| | |
| | | |
| | | #include "scpi/config.h" |
| | | #include "scpi/parser.h" |
| | | #include "utils.h" |
| | | #include "scpi/utils_private.h" |
| | | #include "scpi/error.h" |
| | | #include "scpi/constants.h" |
| | | |
| | |
| | | context->paramlist.cmd = cmd; |
| | | context->paramlist.parameters = cmdline_ptr + cmd_len; |
| | | context->paramlist.length = cmdline_len - cmd_len; |
| | | context->paramlist.cmd_raw.data = cmdline_ptr; |
| | | context->paramlist.cmd_raw.length = cmd_len; |
| | | context->paramlist.cmd_raw.position = 0; |
| | | return TRUE; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * Parse string parameter |
| | | * @param context |
| | | * @param value |
| | | * @param len |
| | | * @param value Pointer to string buffer where pointer to non-null terminated string will be returned |
| | | * @param len Length of returned non-null terminated string |
| | | * @param mandatory |
| | | * @return |
| | | */ |
| | |
| | | /** |
| | | * Parse text parameter (can be inside "") |
| | | * @param context |
| | | * @param value |
| | | * @param len |
| | | * @param value Pointer to string buffer where pointer to non-null terminated string will be returned |
| | | * @param len Length of returned non-null terminated string |
| | | * @param mandatory |
| | | * @return |
| | | */ |