asyncapi: 2.6.0
info:
  title: LIN Bus (classic checksum)
  version: '2.0'
  description: Automotive master/slave bus. Genuinely UART-based (8N1 async bytes)
    but frame length is looked up by identifier, not sent on the wire.
servers:
  serial_link:
    url: serial://tty/115200
    protocol: serial
    description: Physical UART Transport (115200 bps, 8N1.0)
    bindings:
      serial:
        baudRate: 115200
        dataBits: 8
        parity: none
        stopBits: 1.0
        framingType: binary
        integrity: sum8
channels:
  omniuart/cmd/WheelSpeedFrame:
    publish:
      summary: 'Send command WheelSpeedFrame (ID: 0x00)'
      description: One specific LIN identifier; its data length (4 bytes here) is
        known from the identifier, not transmitted.
      message:
        name: WheelSpeedFrame_Message
        title: WheelSpeedFrame Command
        payload:
          $ref: '#/components/schemas/WheelSpeedFrame_Request'
components:
  messages: {}
  schemas:
    WheelSpeedFrame_Request:
      type: object
      properties:
        command_id:
          type: integer
          const: 0
          description: Opcode ID for WheelSpeedFrame
        pid:
          type: string
          contentEncoding: base64
        data:
          type: string
          contentEncoding: base64
      description: One specific LIN identifier; its data length (4 bytes here) is
        known from the identifier, not transmitted.
