# Copyright (C) Frickly Systems GmbH
# Copyright (C) MBition GmbH
#
# SPDX-License-Identifier: Apache-2.0

module = LIN2CAN
module-str = LIN2CAN
source "subsys/logging/Kconfig.template.log_config"


config LIN2CAN_INIT_PRIORITY
  int
  prompt "LIN2CAN init priority"
  default CAN_INIT_PRIORITY

config LIN2CAN_OUTGOING_QUEUE_SIZE
  int 
  prompt "Outgoing queue size"
  default 32
  help 
    The size of the outgoing message queue. If can_send is executed and the queue is full
    it will block until there is room in the queue (or a timeout ocurrs)


config LIN2CAN_MASTER_REQUEST_ID
  hex
  prompt "Master request LIN ID"
  default 0x3C

config LIN2CAN_SLAVE_RESPONSE_ID
  hex
  prompt "Slave response LIN ID"
  default 0x3D

menu "Translated CAN IDs"
  config LIN2CAN_CAN_ID0
    hex
    prompt "LIN ID 0"
    default 0x80
  config LIN2CAN_CAN_ID1
    hex
    prompt "LIN ID 1"
    default 0x180
  config LIN2CAN_CAN_ID2
    hex
    prompt "LIN ID 2"
    default 0x01
  config LIN2CAN_CAN_ID3
    hex
    prompt "LIN ID 3"
    default 0x181
endmenu