Files
TeamTofuShop_taitools/board/k9101258.h
T
2025-04-25 03:23:44 -04:00

25 lines
734 B
C

#pragma once
#include <windows.h>
#include <stdint.h>
#include <stdbool.h>
#pragma pack(push,1)
// needs to handle digital and analog reads and writes, coin stuff, and
// having an ad-on device (usually a card reader) and maybe an SD card??
// Mayhaps move this to a seperate thing in the event a second USB IO
// providor is needed?
struct usbio_ops {
void (*digital_in)(void *ctx, uint32_t *out);
void (*digital_out)(void *ctx); // TODO: digital outputs
void (*analog_in)(void *ctx, uint16_t out[8]);
bool (*is_coin_pressed)(void *ctx);
void (*reader_poll)(void *ctx); // TODO: reader struct?
void (*reader_led_out)(void *ctx); // TODO: reader struct?
};
#pragma pack(pop)
HRESULT k9101258_hook_init();