{
  "$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
  "self": {
    "vendor": "com.iqrftech.self-desc",
    "name": "schema__iqrf__IqrfUart",
    "format": "jsonschema",
    "version": "1-0-0"
  },
  "type": "object",
  "required": [
    "component",
    "instance",
    "IqrfInterface",
    "baudRate",
    "powerEnableGpioPin",
    "busEnableGpioPin",
    "pgmSwitchGpioPin",
    "uartReset"
  ],
  "additionalProperties": false,
  "properties": {
    "component": {
      "title": "Component name",
      "description": "Name of component.",
      "type": "string",
      "enum": [
        "iqrf::IqrfUart"
      ]
    },
    "instance": {
      "title": "Instance name",
      "description": "Name of component instance.",
      "type": "string",
      "pattern": "^[a-zA-Z0-9-]+$",
      "example": "IqrfUart-1"
    },
    "IqrfInterface": {
      "title": "Interface name",
      "description": "Identifier (path to) of physical interface.",
      "type": "string",
      "minLength": 1,
      "example": "/dev/ttyS0"
    },
    "baudRate": {
      "title": "Baud rate",
      "description": "UART interface baud rate",
      "type": "integer",
      "enum": [
        1200,
        2400,
        4800,
        9600,
        19200,
        38400,
        57600,
        115200,
        230400
      ],
      "example": 57600
    },
    "powerEnableGpioPin": {
      "title": "Power pin",
      "description": "GPIO pin to enable power to TR module.",
      "type": "integer",
      "example": 23
    },
    "busEnableGpioPin": {
      "title": "Bus pin",
      "description": "GPIO pin to connect bus lines of TR module to control MCU.",
      "type": "integer",
      "example": 7
    },
    "pgmSwitchGpioPin": {
      "title": "PGM pin",
      "description": "GPIO pin to switch TR module to programming mode.",
      "type": "integer",
      "example": 22
    },
    "spiEnableGpioPin": {
      "title": "SPI pin",
      "description": "GPIO pin to enable SPI interface.",
      "type": "integer",
      "example": 7
    },
    "uartEnableGpioPin": {
      "title": "UART pin",
      "description": "GPIO pin to enable UART interface.",
      "type": "integer",
      "example": 6
    },
    "i2cEnableGpioPin": {
      "title": "I2C pin",
      "description": "GPIO pin to enable I2C interface.",
      "type": "integer",
      "example": 11
    },
    "uartReset": {
      "title": "UART reset",
      "description": "Reset UART interface on startup.",
      "type": "boolean",
      "example": true
    }
  }
}
