mdb_config

package
v0.260502.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Overview

Separate package to for hardware/mdb related config structure. Ugly workaround to import cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillStruct added in v0.250104.0

type BillStruct struct {
	ScalingFactor int `hcl:"scaling_factor"`
}

type CoinStruct added in v0.250104.0

type CoinStruct struct {
	// RU: Стратегия выдачи сдачи. 0 = равномерная выдача (стараемся держать одинаковое количество монет в каждой тубе), 1 = сначала полная трубка (если туба полная то выдаем из нее. далее выдаем минимальным количеством монет), 2 = минимальное количество монет (выдаем минимальным количеством монет).
	DispenseStrategy int `hcl:"dispense_strategy,optional"` // 0 = uniform dispensing, 1 = first ful tube, 2 = minimal coins
}

type Config

type Config struct {
	// RU: Конфигурация для купюроприемника.
	Bill BillStruct `hcl:"bill,block"`
	// RU: Конфигурация для монетоприемника.
	Coin       CoinStruct `hcl:"coin,block"`
	LogDebug   bool       `hcl:"log_debug,optional"`
	UartDevice string     `hcl:"uart_device,optional"`
	UartDriver string     `hcl:"uart_driver"` // file|mega|iodin|dummy
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL