2019-11-17 18:11:49 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct chuni_io_config {
|
|
|
|
uint8_t vk_test;
|
|
|
|
uint8_t vk_service;
|
|
|
|
uint8_t vk_coin;
|
2023-07-13 22:58:02 +00:00
|
|
|
uint8_t vk_ir_emu;
|
|
|
|
uint8_t vk_ir[6];
|
2019-11-17 18:11:49 +00:00
|
|
|
uint8_t vk_cell[32];
|
2023-12-19 11:43:26 +00:00
|
|
|
|
|
|
|
// Which ways to output LED information are enabled
|
2024-05-12 20:02:53 +00:00
|
|
|
bool cab_led_output_pipe;
|
|
|
|
bool cab_led_output_serial;
|
2023-12-19 11:43:26 +00:00
|
|
|
|
2024-05-12 20:02:53 +00:00
|
|
|
bool controller_led_output_pipe;
|
|
|
|
bool controller_led_output_serial;
|
2023-12-19 11:43:26 +00:00
|
|
|
|
2024-08-06 21:35:51 +00:00
|
|
|
bool controller_led_output_openithm;
|
|
|
|
|
2023-12-19 11:43:26 +00:00
|
|
|
// The name of a COM port to output LED data on, in serial mode
|
|
|
|
wchar_t led_serial_port[12];
|
|
|
|
int32_t led_serial_baud;
|
2019-11-17 18:11:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void chuni_io_config_load(
|
|
|
|
struct chuni_io_config *cfg,
|
|
|
|
const wchar_t *filename);
|