36 lines
702 B
C
36 lines
702 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct chuni_io_config {
|
|
uint8_t vk_test;
|
|
uint8_t vk_service;
|
|
uint8_t vk_coin;
|
|
uint8_t vk_ir_emu;
|
|
uint8_t vk_ir[6];
|
|
uint8_t vk_cell[32];
|
|
|
|
// Which ways to output LED information are enabled
|
|
bool led_output_pipe;
|
|
bool led_output_serial;
|
|
|
|
bool slider_led_output_pipe;
|
|
bool slider_led_output_serial;
|
|
|
|
// 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;
|
|
};
|
|
|
|
void chuni_io_config_load(struct chuni_io_config *cfg, const wchar_t *filename);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|