write_read_test.def 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. autogen definitions write_read_test.tpl;
  2. data_type = {
  3. type_name = char ;
  4. data_type = short ;
  5. data_field = s ;
  6. error_func = CHAR_ERROR ;
  7. format_char = "0x%X" ;
  8. max_val = "32000.0" ;
  9. max_error = "255" ;
  10. } ;
  11. data_type = {
  12. type_name = short ;
  13. data_type = short ;
  14. data_field = s ;
  15. error_func = INT_ERROR ;
  16. format_char = "0x%X" ;
  17. max_val = "32000.0" ;
  18. max_error = "0" ;
  19. } ;
  20. data_type = {
  21. type_name = "20bit" ;
  22. data_type = int ;
  23. data_field = i ;
  24. error_func = BIT_20_ERROR ;
  25. format_char = "0x%X" ;
  26. max_val = "(1.0 * 0x7F00000)" ;
  27. max_error = "4096" ;
  28. } ;
  29. data_type = {
  30. type_name = "24bit" ;
  31. data_type = int ;
  32. data_field = i ;
  33. error_func = TRIBYTE_ERROR ;
  34. format_char = "0x%X" ;
  35. max_val = "(1.0 * 0x7F000000)" ;
  36. max_error = "256" ;
  37. } ;
  38. data_type = {
  39. type_name = int ;
  40. data_type = int ;
  41. data_field = i ;
  42. error_func = INT_ERROR ;
  43. format_char = "0x%X" ;
  44. max_val = "(1.0 * 0x7F000000)" ;
  45. max_error = "0" ;
  46. } ;
  47. /* Lite remove start */
  48. data_type = {
  49. type_name = float ;
  50. data_type = float ;
  51. data_field = f ;
  52. error_func = FLOAT_ERROR ;
  53. format_char = "%g" ;
  54. max_val = "1.0" ;
  55. max_error = "0" ;
  56. } ;
  57. data_type = {
  58. type_name = double ;
  59. data_type = double ;
  60. data_field = d ;
  61. error_func = FLOAT_ERROR ;
  62. format_char = "%g" ;
  63. max_val = "1.0" ;
  64. max_error = "0" ;
  65. } ;
  66. /* Lite remove end */