2023-07-13 22:58:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include "chuniio/chuniio.h"
|
|
|
|
|
|
|
|
struct chuni_dll {
|
|
|
|
uint16_t api_version;
|
|
|
|
HRESULT (*jvs_init)(void);
|
|
|
|
void (*jvs_poll)(uint8_t *opbtn, uint8_t *beams);
|
|
|
|
void (*jvs_read_coin_counter)(uint16_t *total);
|
|
|
|
HRESULT (*slider_init)(void);
|
|
|
|
void (*slider_start)(chuni_io_slider_callback_t callback);
|
|
|
|
void (*slider_stop)(void);
|
|
|
|
void (*slider_set_leds)(const uint8_t *rgb);
|
2023-12-20 23:45:41 +00:00
|
|
|
HRESULT (*led_init)(void);
|
2023-12-19 11:43:26 +00:00
|
|
|
void (*led_set_leds)(uint8_t board, uint8_t *rgb);
|
2023-07-13 22:58:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct chuni_dll_config {
|
|
|
|
wchar_t path[MAX_PATH];
|
2023-12-24 13:10:29 +00:00
|
|
|
uint8_t chu2to3;
|
2023-07-13 22:58:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct chuni_dll chuni_dll;
|
|
|
|
|
|
|
|
HRESULT chuni_dll_init(const struct chuni_dll_config *cfg, HINSTANCE self);
|