gpib_parser_chars.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef GPIB_PARSER_CHARS_H
  2. #define GPIB_PARSER_CHARS_H
  3. // Service characters definitions
  4. // GPIB_CHAR_OPTIONALHEADER_SIGN, GPIB_CHAR_OPTIONALHEADER_ENDSIGN
  5. // the command header wrapped in these signs is an optional header
  6. #define GPIB_CHAR_OPTIONALHEADER_SIGN ('[')
  7. #define GPIB_CHAR_OPTIONALHEADER_ENDSIGN (']')
  8. // GPIB_CHAR_SCPI_SUBSYS_SEPARATOR_SIGN:
  9. // the command header separator in SCPI
  10. #define GPIB_CHAR_SCPI_SUBSYS_SEPARATOR_SIGN (':')
  11. // GPIB_CHAR_MANDATORY_IEEE488_SIGN:
  12. // the command header which begins from this sign is a header of
  13. // mandatory command
  14. #define GPIB_CHAR_MANDATORY_IEEE488_SIGN ('*')
  15. // GPIB_CHAR_UNDERLINE_SIGN:
  16. // Another valid charater for a GPIB command header
  17. #define GPIB_CHAR_UNDERLINE_SIGN ('_')
  18. // GPIB_CHAR_REQUEST_SIGN:
  19. // This charater in the end of the header body means the request command
  20. #define GPIB_CHAR_REQUEST_SIGN ('?')
  21. // GPIB_CHAR_ENDLINE_SIGN:
  22. // The end-of-line character
  23. #define GPIB_CHAR_ENDLINE_SIGN ('\n')
  24. // GPIB_CHAR_WHITE_SIGN:
  25. // The "white" character
  26. #define GPIB_CHAR_WHITE_SIGN (' ')
  27. // GPIB_CHAR_ARGSEPARATOR_SIGN:
  28. // The argument separator character
  29. #define GPIB_CHAR_ARGSEPARATOR_SIGN (',')
  30. // GPIB_CHAR_NUMSEPARATOR_SIGN:
  31. // Numbers separator character in the list
  32. #define GPIB_CHAR_NUMSEPARATOR_SIGN (',')
  33. // GPIB_CHAR_CMDSEPARATOR_SIGN:
  34. // Commands separator character in the list
  35. #define GPIB_CHAR_CMDSEPARATOR_SIGN (';')
  36. // GPIB_CHAR_RPLSEPARATOR_SIGN:
  37. // Replies separator character
  38. #define GPIB_CHAR_RPLSEPARATOR_SIGN (';')
  39. // GPIB_CHAR_NMBSYSTEM_SIGN:
  40. // The numeric system prefix character
  41. #define GPIB_CHAR_NMBSYSTEM_SIGN ('#')
  42. // GPIB_CHAR_DATATABLE_SIGN:
  43. // The datatable prefix character
  44. #define GPIB_CHAR_DATATABLE_SIGN ('#')
  45. // GPIB_CHAR_SINGLEQUOTE_SIGN:
  46. // The single quote character
  47. #define GPIB_CHAR_SINGLEQUOTE_SIGN ('\'')
  48. // GPIB_CHAR_DOUBLEQUOTE_SIGN:
  49. // The double quote character
  50. #define GPIB_CHAR_DOUBLEQUOTE_SIGN ('\"')
  51. #endif