1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-12-18 06:45:53 +01:00
segatools-dniel97/board/slider-frame.h
2019-01-26 12:05:37 -05:00

26 lines
397 B
C

#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);