mrdimm-wire.yaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. schema: prod2u-mrdimm-wire-v1
  2. clock_hz: 25000000
  3. device: EF2L45BG256B
  4. frame:
  5. preamble: [0xA5, 0x5A]
  6. fields: [type: u8, length: u16le, payload: bytes, crc: u16le]
  7. crc: {name: CRC-16/CCITT-FALSE, polynomial: 0x1021, initial: 0xFFFF, reflect_input: false, reflect_output: false, xor_output: 0, coverage: type_length_low_length_high_payload, wire_order: little}
  8. length_width_bits: 16
  9. max_request_payload_bytes: 256
  10. max_response_payload_bytes: 1024
  11. legacy_8bit_frames: RETIRED_NO_AUTODETECT
  12. host_uart:
  13. baud: 921600
  14. format: 8N1
  15. rs232: {connector: CON78, tx_ball: M10, rx_ball: N11, status: confirmed}
  16. ttl: {status: unbound, idle_high_when_absent}
  17. bmc_uart:
  18. baud: 115200
  19. format: 8N1
  20. optional: true
  21. commands:
  22. SET_ALL:
  23. type: 0x01
  24. payload_length: 11
  25. response: ACK_NACK
  26. payload_fields:
  27. - {name: fan_percent, offset: 0, count: 4, minimum: 0, maximum: 100}
  28. - {name: chamber_ptc_percent, offset: 4, count: 4, minimum: 0, maximum: 100}
  29. - {name: motor_z, offset: 8, values: {0x00: seek_lower, 0x64: seek_upper, 0xFF: unchanged}}
  30. - {name: motor_x, offset: 9, values: {0x00: seek_lower, 0x64: seek_upper, 0xFF: unchanged}}
  31. - {name: motor_y, offset: 10, values: {0x00: seek_lower, 0x64: seek_upper, 0xFF: unchanged}}
  32. behavior:
  33. validate_whole_frame_first: true
  34. thermal_commit_atomic_reload_lease: true
  35. motor_endpoint_terminates_active_and_clears_queue: true
  36. motor_endpoint_default_rate: axis_default_half_period
  37. ff_touches_no_motor: true
  38. same_endpoint_is_a_new_request: true
  39. ack_meaning: outputs_committed_and_motion_accepted_not_arrived
  40. GET_ALL: {type: 0x02, payload_length: 0, response: [ACK_NACK, ALL_STATUS_DATA], response_order: ack_after_snapshot_latch_then_data}
  41. MOTOR_QUEUE_WRITE:
  42. type: 0x03
  43. payload: {count: u8, segments: 16n}
  44. length: 1+16*count
  45. count_range: [1, 8]
  46. response: ACK_NACK
  47. behavior:
  48. validate_all_before_any_change: true
  49. preempt_clear_first_segment_of_axis_only: true
  50. publish_atomically: true
  51. MOTOR_CONTROL:
  52. type: 0x04
  53. payload_length: 8
  54. payload: {operation: u8, axis_mask: u16le, flags: u8, value: u32le}
  55. operations: {0: START_ARMED, 1: ABORT, 2: CLEAR_QUEUE, 3: CLEAR_COUNTERS, 4: SET_POSITION, 5: CLEAR_LIMIT_LATCH, 6: HOME_LOWER, 7: SEEK_UPPER}
  56. response: ACK_NACK
  57. OUTPUT_KEEPALIVE: {type: 0x05, payload_length: 0, response: ACK_NACK, feeds_watchdog_only_when_lease_active: true}
  58. EVENT_READ:
  59. type: 0x08
  60. payload_length: 1
  61. payload: {max_records: u8}
  62. max_records_range: [1, 8]
  63. response: [ACK_NACK, EVENT_DATA]
  64. payload_order: ack_after_view_freeze_then_data
  65. read_does_not_delete: true
  66. EVENT_CLEAR:
  67. type: 0x09
  68. payload_length: 1
  69. payload: {n: u8}
  70. semantics: {0: ILLEGAL, "1..64": clear_oldest_n, 0xFF: clear_all, "n>count": clear_existing_count}
  71. response: ACK_NACK
  72. side_effect_no_auto_retry: true
  73. UNLISTED_TYPES: UNSUPPORTED
  74. responses:
  75. ACK_NACK:
  76. type: 0x80
  77. payload_length: 4
  78. payload: [request_type, status, detail_u16le]
  79. status: {OK: 0, UNSUPPORTED: 1, BAD_LENGTH: 2, BAD_VALUE: 3, BUSY: 4, QUEUE_FULL: 5, BAD_AXIS: 6, BAD_MODE: 7, BAD_REGISTER: 8, NOT_READY: 9}
  80. ALL_STATUS_DATA:
  81. type: 0x81
  82. content: snapshot + per-axis motor telemetry + event ring head info (time_high/overflow)
  83. EVENT_DATA:
  84. type: 0x83
  85. payload: record_count:u8 + 16-byte records (oldest first)
  86. RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
  87. invalid_behavior:
  88. bad_header_crc_partial_timeout_framing: silent_drop
  89. complete_crc_valid_request: exactly_one_ack_nack
  90. declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
  91. a55a_inside_payload: not_a_new_frame
  92. retry_semantics:
  93. set_all_with_motor_endpoints: preempting_outcome_unknown_on_timeout
  94. motor_queue_write: side_effect_no_auto_retry
  95. motor_control_side_effects: no_auto_retry
  96. keepalive_get: retryable
  97. motor_segment:
  98. bytes: 16
  99. layout:
  100. axis: {offset: 0, values: {0: X, 1: Y, 2: Z}}
  101. mode: {offset: 1, values: {0: relative, 1: seek_lower, 2: seek_upper, 3: continuous, 4: hold}}
  102. flags: {offset: 2, bits: {0: upper_direction, 1: preempt, 2: arm, 3: clear_queue}, high_nibble: must_be_zero}
  103. reserved3: 0
  104. count_or_duration: {offset: 4, type: u32le}
  105. half_period_us: {offset: 8, type: u32le}
  106. command_tag: {offset: 12, type: u16le}
  107. reserved14: 0
  108. min_half_period_us: {x: 500, y: 500, z: 20000}
  109. frequency: 500000/half_period_us
  110. hold: {half_period_must_be_zero: true, count_zero_completes_immediately: true}
  111. stop_reason: {0: NONE, 1: STEP_COUNT_COMPLETE, 2: LOWER_LIMIT, 3: UPPER_LIMIT, 4: ABORT, 5: PREEMPT, 6: RESET, 7: BOTH_LIMITS, 8: HOST_STEP_CAP_COMPLETE, 9: HOLD_COMPLETE}
  112. event_codes: {1: segment_complete, 2: lower_limit, 3: upper_limit, 4: abort, 5: preempt, 6: reset, 7: both_limits, 8: host_step_cap, 9: hold_complete, 10: home_complete}
  113. outstanding_transactions: 1
  114. watchdog_feed: legal_set_all_commit_or_active_keepalive_only