Hoist slider from board into chunihook

Diva slider uses the quasi-JVS framing used by all other SEGA
boards, the Chunithm slider is a special case.
This commit is contained in:
Tau
2018-11-13 19:36:34 -05:00
parent 78e7de613f
commit 9f43f9f397
8 changed files with 11 additions and 10 deletions

View File

@ -1,25 +0,0 @@
#pragma once
#include <windows.h>
#include <stddef.h>
#include <stdint.h>
#include "hook/iobuf.h"
enum {
SLIDER_FRAME_SYNC = 0xFF,
};
struct slider_hdr {
uint8_t sync;
uint8_t cmd;
uint8_t nbytes;
};
HRESULT slider_frame_decode(struct iobuf *dest, struct iobuf *src);
HRESULT slider_frame_encode(
struct iobuf *dest,
const void *ptr,
size_t nbytes);