mirror of
https://gitea.tendokyu.moe/TeamTofuShop/taitools.git
synced 2026-09-25 15:47:57 +03:00
46 lines
922 B
C
46 lines
922 B
C
#include <windows.h>
|
|
#include <assert.h>
|
|
|
|
#include "jvs/jvs-bus.h"
|
|
#include "idmac/jvs.h"
|
|
#include "board/j9100628a.h"
|
|
|
|
#include "sivahook/reader.h"
|
|
#include "sivahook/siva-dll.h"
|
|
|
|
#include "util/dprintf.h"
|
|
|
|
static void reader_jvs_write_led(void *ctx, uint32_t state);
|
|
static void reader_jvs_poll_card(void *ctx, char *serial);
|
|
|
|
static const struct j9100628a_ops siva_jvs_reader_ops = {
|
|
.write_led = reader_jvs_write_led,
|
|
.poll_card = reader_jvs_poll_card,
|
|
};
|
|
|
|
static struct j9100628a siva_jvs_reader;
|
|
|
|
HRESULT siva_reader_init(struct jvs_node **out)
|
|
{
|
|
HRESULT hr;
|
|
|
|
assert(out != NULL);
|
|
|
|
dprintf("Siva Nesica Reader: Init\n");
|
|
|
|
j9100628a_init(&siva_jvs_reader, NULL, &siva_jvs_reader_ops, NULL);
|
|
*out = j9100628a_to_jvs_node(&siva_jvs_reader);
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
static void reader_jvs_write_led(void *ctx, uint32_t state)
|
|
{
|
|
|
|
}
|
|
|
|
static void reader_jvs_poll_card(void *ctx, char *serial)
|
|
{
|
|
|
|
}
|